33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
import { PrismaModule } from "src/prisma/prisma.module";
|
|
import { PayPeriodsController } from "./controllers/pay-periods.controller";
|
|
import { Module } from "@nestjs/common";
|
|
import { PayPeriodsCommandService } from "./services/pay-periods-command.service";
|
|
import { PayPeriodsQueryService } from "./services/pay-periods-query.service";
|
|
import { TimesheetsModule } from "../timesheets/timesheets.module";
|
|
import { TimesheetsCommandService } from "../timesheets/services/timesheets-command.service";
|
|
import { ExpensesCommandService } from "../expenses/services/expenses-command.service";
|
|
import { ShiftsCommandService } from "../shifts/services/shifts-command.service";
|
|
import { BankCodesRepo } from "../expenses/repos/bank-codes.repo";
|
|
import { EmployeesRepo } from "../expenses/repos/employee.repo";
|
|
import { TimesheetsRepo } from "../expenses/repos/timesheets.repo";
|
|
|
|
@Module({
|
|
imports: [PrismaModule, TimesheetsModule],
|
|
providers: [
|
|
PayPeriodsQueryService,
|
|
PayPeriodsCommandService,
|
|
TimesheetsCommandService,
|
|
ExpensesCommandService,
|
|
ShiftsCommandService,
|
|
BankCodesRepo,
|
|
TimesheetsRepo,
|
|
EmployeesRepo,
|
|
],
|
|
controllers: [PayPeriodsController],
|
|
exports: [
|
|
PayPeriodsQueryService,
|
|
PayPeriodsCommandService,
|
|
]
|
|
})
|
|
|
|
export class PayperiodsModule {} |