( payload: any, helpers: JobHelpers )
| 166 | }; |
| 167 | |
| 168 | export const typesenseOnCommunityTypeUpdate = async ( |
| 169 | payload: any, |
| 170 | helpers: JobHelpers |
| 171 | ) => { |
| 172 | const logger = new Logger(helpers.logger); |
| 173 | |
| 174 | const { accountId } = z |
| 175 | .object({ |
| 176 | accountId: z.string().uuid(), |
| 177 | }) |
| 178 | .parse(payload); |
| 179 | |
| 180 | const keepAlive = new KeepAlive(helpers); |
| 181 | keepAlive.start(); |
| 182 | |
| 183 | try { |
| 184 | await handleCommunityUpdate({ accountId, logger }); |
| 185 | } finally { |
| 186 | keepAlive.end(); |
| 187 | } |
| 188 | }; |
| 189 | |
| 190 | export const typesenseOnCommunityDeletion = async ( |
| 191 | payload: any, |
nothing calls this directly
no test coverage detected