fix: retry failed revision transitions

This commit is contained in:
Karol Sójko
2023-09-12 14:45:17 +02:00
parent db0360860a
commit e535cd504c
11 changed files with 109 additions and 4 deletions
@@ -10,6 +10,10 @@ export class TransitionRequestedEventHandler implements DomainEventHandlerInterf
) {}
async handle(event: TransitionRequestedEvent): Promise<void> {
if (event.payload.type !== 'items') {
return
}
this.logger.info(`Handling transition requested event for user ${event.payload.userUuid}`)
const result = await this.triggerTransitionFromPrimaryToSecondaryDatabaseForUser.execute({