Merge pull request 'feat/data-trx-schedule' (#165) from feat/data-trx-schedule into development
Reviewed-on: #165pull/167/head
commit
a696392d0f
|
@ -109,7 +109,6 @@ export class DataSchedulingDefaultController {
|
||||||
|
|
||||||
@Get()
|
@Get()
|
||||||
async get(): Promise<DataSchedulingDefaultEntity> {
|
async get(): Promise<DataSchedulingDefaultEntity> {
|
||||||
console.log('here');
|
|
||||||
return await this.manager.getData();
|
return await this.manager.getData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -125,6 +124,13 @@ export class DataSchedulingSetupController {
|
||||||
@Body() data: SetupDataSchedulingDto,
|
@Body() data: SetupDataSchedulingDto,
|
||||||
): Promise<DataSchedulingEntity> {
|
): Promise<DataSchedulingEntity> {
|
||||||
console.log('payload scheduling setup', { data });
|
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;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue