From 1987ed968c0c7f6945ebab436aeae089258fe001 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Thu, 24 Jul 2025 10:05:36 -0400 Subject: [PATCH] fix(typo): small typo fix --- docs/swagger/swagger-spec.json | 21 ++++++++++++++++----- src/app.module.ts | 4 ++-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/docs/swagger/swagger-spec.json b/docs/swagger/swagger-spec.json index b094ca8..79b557e 100644 --- a/docs/swagger/swagger-spec.json +++ b/docs/swagger/swagger-spec.json @@ -814,7 +814,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateShiftCodesDto" + "$ref": "#/components/schemas/CreateShiftCodeDto" } } } @@ -931,7 +931,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UpdateShiftCodesDto" + "$ref": "#/components/schemas/UpdateShiftCodeDto" } } } @@ -2043,7 +2043,7 @@ } } }, - "CreateShiftCodesDto": { + "CreateShiftCodeDto": { "type": "object", "properties": { "shift_type": { @@ -2087,7 +2087,7 @@ "bank_code" ] }, - "UpdateShiftCodesDto": { + "UpdateShiftCodeDto": { "type": "object", "properties": { "shift_type": { @@ -2132,6 +2132,11 @@ "type": "string", "example": "17:00", "description": "End time of the said shift" + }, + "description": { + "type": "string", + "example": "Called for an emergency at X` place", + "description": "justify the purpose of the shift" } }, "required": [ @@ -2139,7 +2144,8 @@ "shift_code_id", "date", "start_time", - "end_time" + "end_time", + "description" ] }, "ShiftEntity": { @@ -2218,6 +2224,11 @@ "type": "string", "example": "17:00", "description": "End time of the said shift" + }, + "description": { + "type": "string", + "example": "Called for an emergency at X` place", + "description": "justify the purpose of the shift" } } }, diff --git a/src/app.module.ts b/src/app.module.ts index ec0027b..55f1753 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -9,7 +9,7 @@ import { OauthAccessTokensModule } from './modules/oauth-access-tokens/oauth-acc import { CustomersModule } from './modules/customers/customers.module'; import { EmployeesModule } from './modules/employees/employees.module'; import { LeaveRequestsModule } from './modules/leave-requests/leave-requests.module'; -import { ShiftCodeModule } from './modules/shift-codes/shift-codes.module'; +import { ShiftCodesModule } from './modules/shift-codes/shift-codes.module'; import { ShiftsModule } from './modules/shifts/shifts.module'; import { TimesheetsModule } from './modules/timesheets/timesheets.module'; import { AuthenticationModule } from './modules/authentication/auth.module'; @@ -23,7 +23,7 @@ import { AuthenticationModule } from './modules/authentication/auth.module'; CustomersModule, EmployeesModule, LeaveRequestsModule, - ShiftCodeModule, + ShiftCodesModule, ShiftsModule, TimesheetsModule, AuthenticationModule,