MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / createMarkAllAsReadJob

Function createMarkAllAsReadJob

apps/web/queue/jobs.ts:59–69  ·  view source on GitHub ↗
(
  jobKey: string,
  payload: { communityId: string; userId: string }
)

Source from the content-addressed store, hash-verified

57}
58
59export async function createMarkAllAsReadJob(
60 jobKey: string,
61 payload: { communityId: string; userId: string }
62) {
63 const worker = await WorkerSingleton.getInstance();
64 return await worker.addJob('mark-all-as-read-queue', payload, {
65 jobKey: `mark-all-as-read-queue:${jobKey}`,
66 maxAttempts: 1,
67 jobKeyMode: 'replace',
68 });
69}
70
71export async function createNotificationJob(
72 jobKey: string,

Callers 1

createFunction · 0.90

Calls 1

getInstanceMethod · 0.80

Tested by

no test coverage detected