Skip to main content

Function: setCompletion()

function setCompletion(
context,
siteUrl,
activityId,
done
): Promise<{
changed: string;
}>;

Defined in: areas/completion/completion.ts:31

Marks the person's own completion of an activity with manual completion, done or not, as its "Mark as done" button does; doing it twice changes nothing. An activity that completes on its own gives a CompletionError.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
doneboolean

Returns​

Promise<{ changed: string; }>