Function
typesenseOnThreadCreation
(
payload: any,
helpers: JobHelpers
)
Source from the content-addressed store, hash-verified
| 274 | }; |
| 275 | |
| 276 | export 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 | |
| 296 | export const typesenseOnThreadUpdate = async ( |
| 297 | payload: any, |
Callers
nothing calls this directly
Tested by
no test coverage detected