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