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

Function typesenseOnCommunityTypeUpdate

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

Source from the content-addressed store, hash-verified

166};
167
168export const typesenseOnCommunityTypeUpdate = async (
169 payload: any,
170 helpers: JobHelpers
171) => {
172 const logger = new Logger(helpers.logger);
173
174 const { accountId } = z
175 .object({
176 accountId: z.string().uuid(),
177 })
178 .parse(payload);
179
180 const keepAlive = new KeepAlive(helpers);
181 keepAlive.start();
182
183 try {
184 await handleCommunityUpdate({ accountId, logger });
185 } finally {
186 keepAlive.end();
187 }
188};
189
190export const typesenseOnCommunityDeletion = async (
191 payload: any,

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
endMethod · 0.95
handleCommunityUpdateFunction · 0.90

Tested by

no test coverage detected