fix(dates): removed dates from L-R and P-P

This commit is contained in:
Matthieu Haineault 2025-10-09 15:23:03 -04:00
parent 4527b0e7f7
commit 1954d206a8
2 changed files with 8 additions and 3 deletions

View File

@ -62,7 +62,6 @@ export class LeaveRequestsUtils {
await this.shiftsCommand.upsertShiftsByDate(email, iso_date, {
old_shift: existing
? {
date: existing.date,
start_time: existing.start_time.toISOString().slice(11, 16),
end_time: existing.end_time.toISOString().slice(11, 16),
type: existing.bank_code?.type ?? type,
@ -72,7 +71,6 @@ export class LeaveRequestsUtils {
}
: undefined,
new_shift: {
date: existing?.date ?? '',
start_time: toHHmm(start_minutes),
end_time: toHHmm(end_minutes),
is_remote: existing?.is_remote ?? false,
@ -101,7 +99,6 @@ export class LeaveRequestsUtils {
await this.shiftsCommand.upsertShiftsByDate(email, iso_date, {
old_shift: {
date: existing.date,
start_time: existing.start_time.toISOString().slice(11, 16),
end_time: existing.end_time.toISOString().slice(11, 16),
type: existing.bank_code?.type ?? type,

View File

@ -8,6 +8,10 @@ import { TimesheetsCommandService } from "../timesheets/services/timesheets-comm
import { ExpensesCommandService } from "../expenses/services/expenses-command.service";
import { ShiftsCommandService } from "../shifts/services/shifts-command.service";
import { SharedModule } from "../shared/shared.module";
import { EmployeeIdEmailResolver } from "../shared/utils/resolve-email-id.utils";
import { BankCodesResolver } from "../shared/utils/resolve-bank-type-id.utils";
import { PrismaService } from "src/prisma/prisma.service";
import { OvertimeService } from "../business-logics/services/overtime.service";
@Module({
imports: [PrismaModule, TimesheetsModule, SharedModule],
@ -17,6 +21,10 @@ import { SharedModule } from "../shared/shared.module";
TimesheetsCommandService,
ExpensesCommandService,
ShiftsCommandService,
EmployeeIdEmailResolver,
BankCodesResolver,
PrismaService,
OvertimeService,
],
controllers: [PayPeriodsController],
exports: [