({
channelId,
threadId,
accountId,
}: ThreadReopenedEvent)
| 8 | }; |
| 9 | |
| 10 | export async function eventThreadReopened({ |
| 11 | channelId, |
| 12 | threadId, |
| 13 | accountId, |
| 14 | }: ThreadReopenedEvent) { |
| 15 | const event = { |
| 16 | channelId, |
| 17 | threadId, |
| 18 | accountId, |
| 19 | }; |
| 20 | |
| 21 | const promises: Promise<any>[] = [ |
| 22 | createTwoWaySyncJob({ ...event, event: 'threadReopened', id: threadId }), |
| 23 | ]; |
| 24 | |
| 25 | const result = await Promise.allSettled(promises); |
| 26 | console.log(stringify(result)); |
| 27 | } |
no test coverage detected