MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / updateTask

Method updateTask

js/botasaurus-server-js/src/task-helper.ts:609–620  ·  view source on GitHub ↗
(
        taskId: number,
        data: any,
        inStatus?: string[]
    )

Source from the content-addressed store, hash-verified

607
608
609 static updateTask(
610 taskId: number,
611 data: any,
612 inStatus?: string[]
613 ): Promise<number> {
614 const query: any = { id: taskId };
615 if (inStatus) {
616 query.status = { $in: inStatus };
617 }
618
619 return TaskHelper.updateTaskByQuery(query, data);
620 }
621
622 static updateTaskByQuery(query: any, data: any): Promise<number> {
623 return new Promise((resolve, reject) => {

Callers 7

abortTaskMethod · 0.95
finishParentTaskMethod · 0.95
readCleanSaveTaskMethod · 0.95
markTaskAsFailureMethod · 0.80
updateTaskAsCompletedMethod · 0.80
createTasksFunction · 0.80

Calls 1

updateTaskByQueryMethod · 0.80

Tested by

no test coverage detected