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

Function typesenseOnMessageCreation

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

Source from the content-addressed store, hash-verified

234};
235
236export const typesenseOnMessageCreation = async (
237 payload: any,
238 helpers: JobHelpers
239) => {
240 const logger = new Logger(helpers.logger);
241 logger.info(payload);
242
243 const parsedPayload = z
244 .object({
245 accountId: z.string().uuid(),
246 threadId: z.string().uuid(),
247 })
248 .parse(payload);
249
250 await handleMessageCreation({
251 ...parsedPayload,
252 logger,
253 });
254};
255
256export const typesenseOnMessageUpdate = async (
257 payload: any,

Callers

nothing calls this directly

Calls 2

infoMethod · 0.95
handleMessageCreationFunction · 0.90

Tested by

no test coverage detected