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

Method get

apps/web/services/threads/index.ts:81–90  ·  view source on GitHub ↗
({ id, accountId }: GetType)

Source from the content-addressed store, hash-verified

79 }
80
81 static async get({ id, accountId }: GetType) {
82 const thread = await findThreadById(id);
83 if (!thread) {
84 return null;
85 }
86 if (thread.channel?.accountId !== accountId) {
87 return null;
88 }
89 return serializeThread(thread);
90 }
91
92 static async update({
93 id,

Callers

nothing calls this directly

Calls 2

serializeThreadFunction · 0.90
findThreadByIdFunction · 0.85

Tested by

no test coverage detected