From e4447a138c6e0eff3e8aacb9e4f25869f2c82be5 Mon Sep 17 00:00:00 2001 From: Matthieu Haineault Date: Thu, 4 Dec 2025 15:02:54 -0500 Subject: [PATCH] fix(modules): file imports fixes --- .../notifications/notifications.controller.ts | 2 +- .../notifications/notifications.module.ts | 2 +- .../attachments/attachments.module.ts | 18 +++++++++--------- .../bank-codes/bank-codes.controller.ts | 5 +++-- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/shared/notifications/notifications.controller.ts b/src/shared/notifications/notifications.controller.ts index a12c366..9a01808 100644 --- a/src/shared/notifications/notifications.controller.ts +++ b/src/shared/notifications/notifications.controller.ts @@ -1,8 +1,8 @@ import { Controller, Get, Req, Sse, MessageEvent as NestMessageEvent } from "@nestjs/common"; -import { NotificationsService } from "../services/notifications.service"; import { Observable } from "rxjs"; import { map } from 'rxjs/operators'; +import { NotificationsService } from "src/shared/notifications/notifications.service"; @Controller('notifications') export class NotificationsController { diff --git a/src/shared/notifications/notifications.module.ts b/src/shared/notifications/notifications.module.ts index a45eb11..01b5de7 100644 --- a/src/shared/notifications/notifications.module.ts +++ b/src/shared/notifications/notifications.module.ts @@ -1,6 +1,6 @@ import { Module } from "@nestjs/common"; -import { NotificationsController } from "./controllers/notifications.controller"; import { NotificationsService } from "./notifications.service"; +import { NotificationsController } from "src/shared/notifications/notifications.controller"; @Module({ providers: [NotificationsService], controllers: [NotificationsController], diff --git a/src/time-and-attendance/attachments/attachments.module.ts b/src/time-and-attendance/attachments/attachments.module.ts index 06fa52f..de9af93 100644 --- a/src/time-and-attendance/attachments/attachments.module.ts +++ b/src/time-and-attendance/attachments/attachments.module.ts @@ -1,13 +1,13 @@ -import { AttachmentArchivalService } from "src/modules/attachments/services/attachment-archival.service"; -import { GarbargeCollectorService } from "src/modules/attachments/services/garbage-collector.service"; -import { AttachmentsController } from "src/modules/attachments/controllers/attachments.controller"; -import { DiskStorageService } from "src/modules/attachments/services/disk-storage.service"; -import { VariantsQueue } from "src/modules/attachments/services/variants.queue"; -import { Module } from "@nestjs/common"; -import { AttachmentDeleteService } from "src/modules/attachments/services/attachment-delete.service"; -import { AttachmentUploadService } from "src/modules/attachments/services/attachment-upload.service"; -import { AttachmentGetService } from "src/modules/attachments/services/attachment-get.service"; +import { Module } from "@nestjs/common"; +import { AttachmentsController } from "src/time-and-attendance/attachments/attachments.controller"; +import { AttachmentArchivalService } from "src/time-and-attendance/attachments/services/attachment-archival.service"; +import { AttachmentDeleteService } from "src/time-and-attendance/attachments/services/attachment-delete.service"; +import { AttachmentGetService } from "src/time-and-attendance/attachments/services/attachment-get.service"; +import { AttachmentUploadService } from "src/time-and-attendance/attachments/services/attachment-upload.service"; +import { DiskStorageService } from "src/time-and-attendance/attachments/services/disk-storage.service"; +import { GarbargeCollectorService } from "src/time-and-attendance/attachments/services/garbage-collector.service"; +import { VariantsQueue } from "src/time-and-attendance/attachments/services/variants.queue"; @Module({ controllers: [ AttachmentsController], providers: [ diff --git a/src/time-and-attendance/bank-codes/bank-codes.controller.ts b/src/time-and-attendance/bank-codes/bank-codes.controller.ts index b6d05fd..39b4fd0 100644 --- a/src/time-and-attendance/bank-codes/bank-codes.controller.ts +++ b/src/time-and-attendance/bank-codes/bank-codes.controller.ts @@ -1,8 +1,9 @@ import { Body, Controller, Delete, Get, Param, ParseIntPipe, Patch, Post } from "@nestjs/common"; -import { BankCodesService } from "../services/bank-codes.service"; -import { BankCodeDto } from "../bank-code.dto"; + import { ModuleAccessAllowed } from "src/common/decorators/modules-guard.decorators"; import { Modules as ModulesEnum } from ".prisma/client"; +import { BankCodeDto } from "src/time-and-attendance/bank-codes/bank-code.dto"; +import { BankCodesService } from "src/time-and-attendance/bank-codes/bank-codes.service"; @Controller('bank-codes') @ModuleAccessAllowed(ModulesEnum.employee_management)