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

Function typesenseOnMessageUpdate

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

Source from the content-addressed store, hash-verified

254};
255
256export const typesenseOnMessageUpdate = async (
257 payload: any,
258 helpers: JobHelpers
259) => {
260 const logger = new Logger(helpers.logger);
261 logger.info(payload);
262
263 const parsedPayload = z
264 .object({
265 accountId: z.string().uuid(),
266 threadId: z.string().uuid(),
267 })
268 .parse(payload);
269
270 await handleMessageUpdate({
271 ...parsedPayload,
272 logger,
273 });
274};
275
276export const typesenseOnThreadCreation = async (
277 payload: any,

Callers

nothing calls this directly

Calls 1

infoMethod · 0.95

Tested by

no test coverage detected