diff --git a/api/src/utils/generics/base-controller.ts b/api/src/utils/generics/base-controller.ts index 5fa9b4d5..13dfcbf2 100644 --- a/api/src/utils/generics/base-controller.ts +++ b/api/src/utils/generics/base-controller.ts @@ -44,7 +44,7 @@ export abstract class BaseController< * @throws {NotFoundException} Throws a NotFoundException if any invalid IDs are found. */ protected validate({ dto, allowedIds }: TValidateProps): void { - const exceptions = []; + const exceptions: string[] = []; Object.entries(dto) .filter(([key]) => Object.keys(allowedIds).includes(key)) .forEach(([field]) => {