minca
ApiSchemasFunctions

Function: setActivity()

function setActivity(
   node, 
   space, 
   on, 
   state, 
   label?
): Promise<
  | NodeRecord<unknown>
| null>;

Defined in: packages/core/src/schemas/automations.ts:210

Says where this account's work on a record stands: its one std.activity about it, made or changed. Without a label, the one it had stays. Null where the space keeps no std.activity.

Parameters

ParameterType
nodeP2PNode
spacestring
onstring
stateActivityState
label?string

Returns

Promise< | NodeRecord<unknown> | null>

On this page