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

Function validateTaskIdInPayload

js/botasaurus-server-js/src/validation.ts:448–453  ·  view source on GitHub ↗
(taskId: any)

Source from the content-addressed store, hash-verified

446 * @throws JsonHTTPResponseWithMessage if missing or invalid
447 */
448export function validateTaskIdInPayload(taskId: any): void {
449 if (isNullish(taskId)) {
450 throw new JsonHTTPResponseWithMessage('taskId must be provided');
451 }
452 validateTaskId(taskId, "taskId")
453}
454
455/**
456 * Validates inProgressTaskIds for K8s worker shutdown route.

Callers 1

registerMasterRoutesFunction · 0.90

Calls 2

isNullishFunction · 0.90
validateTaskIdFunction · 0.85

Tested by

no test coverage detected