Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

497 B
Raw Blame
import { metadata } from "@trigger.dev/sdk";

import {
  parseStatus,
  type TDocumentProgressStatus,
} from "@/lib/utils/trigger-status";

/**
 * Update the status of the convert document task. Wraps the `metadata.set` method.
 */
export function updateStatus(status: TDocumentProgressStatus) {
  // `metadata.set` can be used to update the status of the task
  // as long as `updateStatus` is called within the task's `run` function.
  metadata.set("status", status);
}

export { parseStatus };