fix: convert Date to DateOnly
This commit is contained in:
parent
69e080033f
commit
aec9175d1a
@ -6,6 +6,7 @@ import {CreateUserRequest} from "@api/v1/createUserRequest";
|
|||||||
import {LoggingRequest} from "@api/v1/loggingRequest";
|
import {LoggingRequest} from "@api/v1/loggingRequest";
|
||||||
import {EmailRequest} from "@api/v1/emailRequest";
|
import {EmailRequest} from "@api/v1/emailRequest";
|
||||||
import {ScheduleConfigurationRequest} from "@api/v1/scheduleConfigurationRequest";
|
import {ScheduleConfigurationRequest} from "@api/v1/scheduleConfigurationRequest";
|
||||||
|
import {DateOnly} from "@model/DateOnly";
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export default class SetupService extends ApiService {
|
export default class SetupService extends ApiService {
|
||||||
@ -49,6 +50,7 @@ export default class SetupService extends ApiService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public setSchedule(data: ScheduleConfigurationRequest) {
|
public setSchedule(data: ScheduleConfigurationRequest) {
|
||||||
|
data.startTerm = new DateOnly(data.startTerm).toString();
|
||||||
return this.post<boolean>('SetSchedule', data);
|
return this.post<boolean>('SetSchedule', data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user