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

Function typesenseOnChannelDeletion

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

Source from the content-addressed store, hash-verified

144};
145
146export const typesenseOnChannelDeletion = async (
147 payload: any,
148 helpers: JobHelpers
149) => {
150 const { channelId, accountId, channelName } = z
151 .object({
152 channelId: z.string().uuid(),
153 accountId: z.string().uuid(),
154 channelName: z.string(),
155 })
156 .parse(payload);
157
158 const keepAlive = new KeepAlive(helpers);
159 keepAlive.start();
160
161 try {
162 await handleChannelDeletion({ channelId, accountId, channelName });
163 } finally {
164 keepAlive.end();
165 }
166};
167
168export const typesenseOnCommunityTypeUpdate = async (
169 payload: any,

Callers

nothing calls this directly

Calls 3

startMethod · 0.95
endMethod · 0.95
handleChannelDeletionFunction · 0.90

Tested by

no test coverage detected