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

Function typesenseOnThreadCreation

packages/queue/src/tasks/typesense.ts:276–294  ·  view source on GitHub ↗
(
  payload: any,
  helpers: JobHelpers
)

Source from the content-addressed store, hash-verified

274};
275
276export const typesenseOnThreadCreation = async (
277 payload: any,
278 helpers: JobHelpers
279) => {
280 const logger = new Logger(helpers.logger);
281 logger.info(payload);
282
283 const parsedPayload = z
284 .object({
285 accountId: z.string().uuid(),
286 threadId: z.string().uuid(),
287 })
288 .parse(payload);
289
290 await handleThreadCreation({
291 ...parsedPayload,
292 logger,
293 });
294};
295
296export const typesenseOnThreadUpdate = async (
297 payload: any,

Callers

nothing calls this directly

Calls 1

infoMethod · 0.95

Tested by

no test coverage detected