Merge pull request 'feat/data-trx-schedule' (#165) from feat/data-trx-schedule into development

Reviewed-on: #165
pull/167/head
firmanr 2025-07-02 20:44:42 +07:00
commit a696392d0f
1 changed files with 7 additions and 1 deletions

View File

@ -109,7 +109,6 @@ export class DataSchedulingDefaultController {
@Get()
async get(): Promise<DataSchedulingDefaultEntity> {
console.log('here');
return await this.manager.getData();
}
}
@ -125,6 +124,13 @@ export class DataSchedulingSetupController {
@Body() data: SetupDataSchedulingDto,
): Promise<DataSchedulingEntity> {
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;
}
}