mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-05 12:29:37 +01:00
Reviewed and verified at 0b65f490d9.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
9 lines
457 B
TypeScript
9 lines
457 B
TypeScript
import { DELIVERY_QUEUES, notifyDeliveryWork } from "./delivery-work-notifications.js";
|
|
|
|
export type RoutineExecutionStatusScope = { issueId?: string; companyId?: string };
|
|
|
|
export function notifyRoutineExecutionStatus(tx: object, issueId?: string, companyId?: string) {
|
|
return notifyDeliveryWork(tx, DELIVERY_QUEUES.routineExecutionStatus,
|
|
issueId || companyId ? JSON.stringify({ issueId, companyId } satisfies RoutineExecutionStatusScope) : "*");
|
|
}
|