( payload: any, helpers: JobHelpers )
| 144 | }; |
| 145 | |
| 146 | export 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 | |
| 168 | export const typesenseOnCommunityTypeUpdate = async ( |
| 169 | payload: any, |
nothing calls this directly
no test coverage detected