From f5d9fc0857633dc88e5e0fa327e95b89d4e35db2 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Sat, 23 Sep 2023 19:44:38 +0200 Subject: [PATCH] Skip data gathering --- apps/api/src/app/order/order.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/app/order/order.controller.ts b/apps/api/src/app/order/order.controller.ts index 7eb4708b9..be6a6bead 100644 --- a/apps/api/src/app/order/order.controller.ts +++ b/apps/api/src/app/order/order.controller.ts @@ -147,9 +147,9 @@ export class OrderController { userId: this.request.user.id }); - if (data.dataSource !== 'MANUAL' && !order.isDraft) { - // Gather symbol data in the background, if data source not - // MANUAL and not draft + if (data.dataSource && !order.isDraft) { + // Gather symbol data in the background, if data source is set + // (not MANUAL) and not draft this.dataGatheringService.gatherSymbols([ { dataSource: data.dataSource,