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

Function updateThread

packages/integration-discord/src/utils/linen.ts:145–153  ·  view source on GitHub ↗
(id: string, title: string)

Source from the content-addressed store, hash-verified

143}
144
145export async function updateThread(id: string, title: string) {
146 await prisma.threads.update({
147 where: { id },
148 data: {
149 title,
150 slug: slugify(title),
151 },
152 });
153}
154
155export async function setThreadExternalId(id: string, externalId: string) {
156 await prisma.threads.update({

Callers 2

onThreadUpdateFunction · 0.90
onThreadCreateFunction · 0.90

Calls 2

slugifyFunction · 0.90
updateMethod · 0.45

Tested by

no test coverage detected