MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / findThreadsWithNoSlugs

Function findThreadsWithNoSlugs

packages/queue/src/tasks/slugify.ts:46–62  ·  view source on GitHub ↗
(skip: number)

Source from the content-addressed store, hash-verified

44}
45
46const findThreadsWithNoSlugs = (skip: number) => {
47 return prisma.threads.findMany({
48 where: {
49 slug: null,
50 },
51 include: {
52 messages: {
53 orderBy: {
54 sentAt: 'asc',
55 },
56 take: 1,
57 },
58 },
59 skip,
60 take: 100,
61 });
62};

Callers 1

slugifyTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected