@@ -3,7 +3,7 @@ import fs from "fs";
33import multer from "multer" ;
44// import { isAuthorizedByRole } from "@/middlewares/auth";
55import { entityRequestDtoValidator } from "@/middlewares/validators/entityValidators" ;
6- import EntityService from "@/services/implementations/entityService" ;
6+ // import EntityService from "@/services/implementations/entityService";
77// import FileStorageService from "@/services/implementations/fileStorageService";
88// import { IFileStorageService } from "@/services/interfaces/IFileStorageService";
99import {
@@ -18,14 +18,16 @@ const upload = multer({ dest: "uploads/" });
1818const entityRouter : Router = Router ( ) ;
1919// entityRouter.use(isAuthorizedByRole(new Set(["User", "Admin"])));
2020
21+ // Used when FileStorageService is uncommented
22+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
2123const defaultBucket = process . env . FIREBASE_STORAGE_DEFAULT_BUCKET || "" ;
2224// const fileStorageService: IFileStorageService = new FileStorageService(
2325// defaultBucket,
2426// );
2527// const entityService: IEntityService = new EntityService(fileStorageService);
2628
2729// Mock Service
28- let memoryStore : any = { } ;
30+ let memoryStore : Record < string , unknown > = { } ;
2931const entityService : IEntityService = {
3032 createEntity : async ( entity ) => {
3133 memoryStore = { id : "1" , ...entity } ;
@@ -35,6 +37,7 @@ const entityService: IEntityService = {
3537 memoryStore = { id, ...entity } ;
3638 return memoryStore ;
3739 } ,
40+ /* eslint-disable-next-line @typescript-eslint/no-unused-vars */
3841 getEntity : async ( id ) => {
3942 return memoryStore ;
4043 } ,
@@ -146,6 +149,7 @@ entityRouter.delete("/:id", async (req, res) => {
146149
147150/* Get file associated with entity by fileUUID */
148151entityRouter . get ( "/files/:fileUUID" , async ( req , res ) => {
152+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
149153 const { fileUUID } = req . params ;
150154 try {
151155 const fileURL = "http://fake-storage.com/dummy.txt" ;
0 commit comments