From c7954f2340af2862afc64a7df12534fac9a0f7c6 Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Wed, 2 Jul 2025 20:42:26 +0700 Subject: [PATCH] feat(SPG-1124): add comment TODO at controller data scheduling setup --- .../infrastructure/data-scheduling-data.controller.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/configuration/data-scheduling/infrastructure/data-scheduling-data.controller.ts b/src/modules/configuration/data-scheduling/infrastructure/data-scheduling-data.controller.ts index 03b04db..a40f404 100644 --- a/src/modules/configuration/data-scheduling/infrastructure/data-scheduling-data.controller.ts +++ b/src/modules/configuration/data-scheduling/infrastructure/data-scheduling-data.controller.ts @@ -125,6 +125,13 @@ export class DataSchedulingSetupController { @Body() data: SetupDataSchedulingDto, ): Promise { console.log('payload scheduling setup', { data }); + + // TODO: Implement logic for "Send to Black Hole" configuration. + // 1. Retrieve the relevant scheduling configuration based on the date provided in the request body. + // 2. If a specific scheduling configuration is found, apply its values to the main 'configuration' table. + // These values will then be used for the "Send to Black Hole" logic. + // 3. If no specific scheduling configuration is found for the given date, update the 'configuration' table + // with values from the 'data scheduling default' settings instead. return; } }