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

Function createJobs

packages/maintenance/src/discord-sync.ts:64–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62})();
63
64async function createJobs() {
65 const accounts = await prisma.accounts.findMany({
66 select: { id: true },
67 where: { discordServerId: { not: null } },
68 orderBy: { createdAt: 'desc' },
69 });
70 const jobs: any = [];
71 accounts.map((acc) =>
72 jobs.push(queue.add(() => discordSync({ accountId: acc.id })))
73 );
74 return jobs;
75}

Callers 1

discord-sync.tsFile · 0.85

Calls 3

discordSyncFunction · 0.90
mapMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected