From a7d48f3deb1fdda62fdd7cb79eaf4a8a3c005b6a Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Thu, 6 Jun 2024 23:31:34 +0300 Subject: [PATCH] fix: can get null for nullable request --- src/api/v1/setup.service.ts | 8 ++++---- src/shared/requests/v1/scheduleConfigurationRequest.ts | 6 ------ 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/api/v1/setup.service.ts b/src/api/v1/setup.service.ts index f93f221..f525742 100644 --- a/src/api/v1/setup.service.ts +++ b/src/api/v1/setup.service.ts @@ -9,7 +9,7 @@ import {ScheduleConfigurationRequest} from "@api/v1/scheduleConfigurationRequest @Injectable() export default class SetupService extends ApiService { - protected basePath = 'v1/Setup/'; + protected basePath = 'Setup/'; protected version = AvailableVersion.v1; public checkToken(token: string) { @@ -24,7 +24,7 @@ export default class SetupService extends ApiService { return this.post('SetMysql', data); } - public setSqlite(path: string) { + public setSqlite(path: string | null = null) { return this.post('SetSqlite', null, {path: path}); } @@ -40,11 +40,11 @@ export default class SetupService extends ApiService { return this.post('CreateAdmin', data); } - public setLogging(data: LoggingRequest) { + public setLogging(data: LoggingRequest | null = null) { return this.post('SetLogging', data); } - public setEmail(data: EmailRequest) { + public setEmail(data: EmailRequest | null = null) { return this.post('SetEmail', data); } diff --git a/src/shared/requests/v1/scheduleConfigurationRequest.ts b/src/shared/requests/v1/scheduleConfigurationRequest.ts index 8d15c1a..5a3af80 100644 --- a/src/shared/requests/v1/scheduleConfigurationRequest.ts +++ b/src/shared/requests/v1/scheduleConfigurationRequest.ts @@ -9,8 +9,6 @@ * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ -import {PairPeriodTime} from "@model/pairPeriodTime"; - /** * Represents a request to configure the schedule settings. */ @@ -23,8 +21,4 @@ export interface ScheduleConfigurationRequest { * Gets or sets the start date of the term. */ startTerm: string; - /** - * Gets or sets the pair period times, keyed by pair number. - */ - pairPeriod: { [key: string]: PairPeriodTime; }; }