( payload: any, helpers: JobHelpers )
| 102 | }; |
| 103 | |
| 104 | export const typesenseOnChannelNameUpdate = async ( |
| 105 | payload: any, |
| 106 | helpers: JobHelpers |
| 107 | ) => { |
| 108 | const logger = new Logger(helpers.logger); |
| 109 | |
| 110 | const { channelId } = z |
| 111 | .object({ |
| 112 | channelId: z.string().uuid(), |
| 113 | }) |
| 114 | .parse(payload); |
| 115 | |
| 116 | const keepAlive = new KeepAlive(helpers); |
| 117 | keepAlive.start(); |
| 118 | |
| 119 | try { |
| 120 | await handleChannelNameUpdate({ channelId, logger }); |
| 121 | } finally { |
| 122 | keepAlive.end(); |
| 123 | } |
| 124 | }; |
| 125 | |
| 126 | export const typesenseOnChannelTypeUpdate = async ( |
| 127 | payload: any, |
nothing calls this directly
no test coverage detected