From 2eb6a77137e7fd7db05aae13a47345f4e814db9c Mon Sep 17 00:00:00 2001 From: andrea rota Date: Thu, 7 Mar 2024 23:03:00 +0000 Subject: [PATCH] only bypass obsolete (and expensive) query The rest of the flow is still needed to finish triggering completion events, until we refactor this more cleanly. --- .../move-data-from-preparation.handler.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/apps/api/src/modules/scenarios-features/move-data-from-preparation.handler.ts b/api/apps/api/src/modules/scenarios-features/move-data-from-preparation.handler.ts index 96202b98ff..fbab052a8f 100644 --- a/api/apps/api/src/modules/scenarios-features/move-data-from-preparation.handler.ts +++ b/api/apps/api/src/modules/scenarios-features/move-data-from-preparation.handler.ts @@ -69,5 +69,12 @@ export class MoveDataFromPreparationHandler specificationId: command.specificationId, }); }); + + this.eventBus.publish( + new DataMovedFormPreparationEvent( + command.scenarioId, + command.specificationId, + ), + ); } }