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

Function createRemoveCommunityJob

apps/web/queue/jobs.ts:100–120  ·  view source on GitHub ↗
(accountId: string)

Source from the content-addressed store, hash-verified

98}
99
100export async function createRemoveCommunityJob(accountId: string) {
101 const worker = await WorkerSingleton.getInstance();
102 const dayInMs = 24 * 60 * 60 * 1000;
103 const runAt = new Date(Date.now() + dayInMs);
104 await worker.addJob(
105 'typesenseOnCommunityDeletion',
106 { accountId },
107 {
108 jobKey: `typesenseOnCommunityDeletion:${accountId}`,
109 runAt,
110 }
111 );
112 return await worker.addJob(
113 'remove-community',
114 { accountId },
115 {
116 jobKey: `remove-community:${accountId}`,
117 runAt,
118 }
119 );
120}
121
122export async function createTypesenseDeletion(payload: {
123 accountId: string;

Callers 1

removeMethod · 0.90

Calls 1

getInstanceMethod · 0.80

Tested by

no test coverage detected