From 0fc80f50f949d3ab9ca9df2febd934469e6da554 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Tue, 7 Oct 2025 10:28:13 -0400 Subject: [PATCH] fix(timesheets): minor fix --- src/modules/timesheets/controllers/timesheets.controller.ts | 3 --- src/modules/timesheets/dtos/overview-timesheet.dto.ts | 1 - src/modules/timesheets/services/timesheets-query.service.ts | 3 --- 3 files changed, 7 deletions(-) diff --git a/src/modules/timesheets/controllers/timesheets.controller.ts b/src/modules/timesheets/controllers/timesheets.controller.ts index b5d2176..c0ff293 100644 --- a/src/modules/timesheets/controllers/timesheets.controller.ts +++ b/src/modules/timesheets/controllers/timesheets.controller.ts @@ -48,9 +48,6 @@ export class TimesheetsController { const week_offset = Number.isFinite(Number(offset)) ? Number(offset) : 0; return this.timesheetsCommand.createWeekShiftsAndReturnOverview(email, dto.shifts, week_offset); } - - - //_____________________________________________________________________________________________ // Deprecated or unused methods diff --git a/src/modules/timesheets/dtos/overview-timesheet.dto.ts b/src/modules/timesheets/dtos/overview-timesheet.dto.ts index ff86de8..417f913 100644 --- a/src/modules/timesheets/dtos/overview-timesheet.dto.ts +++ b/src/modules/timesheets/dtos/overview-timesheet.dto.ts @@ -22,7 +22,6 @@ export class ExpensesDto { date: string; amount: number; mileage: number; - km: number; comment: string; supervisor_comment: string; is_approved: boolean; diff --git a/src/modules/timesheets/services/timesheets-query.service.ts b/src/modules/timesheets/services/timesheets-query.service.ts index edbc830..c5644a7 100644 --- a/src/modules/timesheets/services/timesheets-query.service.ts +++ b/src/modules/timesheets/services/timesheets-query.service.ts @@ -169,9 +169,6 @@ export class TimesheetsQueryService { } as TimesheetDto; } - //small helper to format hours:minutes - - //maps all shifts of selected timesheet const shifts = timesheet.shift.map((shift_row) => ({ bank_type: shift_row.bank_code?.type ?? '',