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
| Parameter | Type |
|---|---|
context | BrowserContext |
siteUrl | string |
activityId | number |
done | boolean |
Returns
Promise<{
changed: string;
}>