diff --git a/src/identity-and-account/employees/services/employees-get.service.ts b/src/identity-and-account/employees/services/employees-get.service.ts index 51d2d07..5b0587d 100644 --- a/src/identity-and-account/employees/services/employees-get.service.ts +++ b/src/identity-and-account/employees/services/employees-get.service.ts @@ -3,7 +3,7 @@ import { PrismaService } from "src/prisma/prisma.service"; import { Modules, toStringFromBoolean } from "src/common/mappers/module-access.mapper"; import { EmailToIdResolver } from "src/common/mappers/email-id.mapper"; -import { toDateFromString, toStringFromDate } from "src/common/utils/date-utils"; +import { toStringFromDate } from "src/common/utils/date-utils"; import { Result } from "src/common/errors/result-error.factory"; import { toStringFromCompanyCode } from "src/identity-and-account/employees/employee.utils"; diff --git a/src/time-and-attendance/schedule-presets/services/schedule-presets-update.service.ts b/src/time-and-attendance/schedule-presets/services/schedule-presets-update.service.ts index 95cf4cd..3b6a9b7 100644 --- a/src/time-and-attendance/schedule-presets/services/schedule-presets-update.service.ts +++ b/src/time-and-attendance/schedule-presets/services/schedule-presets-update.service.ts @@ -19,7 +19,7 @@ export class SchedulePresetUpdateService { //_________________________________________________________________ async updatePreset(dto: SchedulePresetsDto): Promise> { const existing = await this.prisma.schedulePresets.findFirst({ - where: { id: dto.id, name: dto.name }, + where: { id: dto.id }, select: { id: true, is_default: true,