Merge branch 'main' of git.targo.ca:Targo/targo_backend
This commit is contained in:
commit
fda95d3fc4
|
|
@ -1,6 +1,6 @@
|
|||
import { Injectable, NotFoundException } from "@nestjs/common";
|
||||
import { PrismaService } from "src/prisma/prisma.service";
|
||||
import { DayExpensesDto, ExpenseDto } from "src/modules/timesheets/dtos/timesheet-period.dto";
|
||||
import { DayExpensesDto as ExpenseListResponseDto, ExpenseDto } from "src/modules/timesheets/dtos/timesheet-period.dto";
|
||||
import { round2, toUTCDateOnly } from "src/modules/timesheets/utils/timesheet.helpers";
|
||||
import { EXPENSE_TYPES } from "src/modules/timesheets/types/timesheet.types";
|
||||
import { EmployeeIdEmailResolver } from "src/modules/shared/utils/resolve-email-id.utils";
|
||||
|
|
@ -18,7 +18,7 @@ export class ExpensesQueryService {
|
|||
email: string,
|
||||
year: number,
|
||||
period_no: number
|
||||
): Promise<DayExpensesDto> {
|
||||
): Promise<ExpenseListResponseDto> {
|
||||
//fetch employe_id using email
|
||||
const employee_id = await this.employeeRepo.findIdByEmail(email);
|
||||
if(!employee_id) throw new NotFoundException(`Employee with email: ${email} not found`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user