From aec9175d1a0448aa63de2cbd456a151ab810c6ad Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Tue, 11 Jun 2024 00:17:09 +0300 Subject: [PATCH] fix: convert Date to DateOnly --- src/api/v1/setup.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/v1/setup.service.ts b/src/api/v1/setup.service.ts index f525742..9c8d552 100644 --- a/src/api/v1/setup.service.ts +++ b/src/api/v1/setup.service.ts @@ -6,6 +6,7 @@ import {CreateUserRequest} from "@api/v1/createUserRequest"; import {LoggingRequest} from "@api/v1/loggingRequest"; import {EmailRequest} from "@api/v1/emailRequest"; import {ScheduleConfigurationRequest} from "@api/v1/scheduleConfigurationRequest"; +import {DateOnly} from "@model/DateOnly"; @Injectable() export default class SetupService extends ApiService { @@ -49,6 +50,7 @@ export default class SetupService extends ApiService { } public setSchedule(data: ScheduleConfigurationRequest) { + data.startTerm = new DateOnly(data.startTerm).toString(); return this.post('SetSchedule', data); }