MCPcopy
hub / github.com/Linen-dev/linen.dev / run

Function run

packages/maintenance/src/thread-sentAt.ts:9–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { prisma } from '@linen/database';
8
9async function run() {
10 let page = 0;
11 let hasMore;
12 do {
13 hasMore = await buildSentAtForThreads();
14 console.log(hasMore * page);
15 page++;
16 } while (hasMore > 0);
17}
18
19async function buildSentAtForThreads() {
20 // sentAt by default will have the value 0

Callers 1

thread-sentAt.tsFile · 0.70

Calls 2

buildSentAtForThreadsFunction · 0.85
logMethod · 0.65

Tested by

no test coverage detected