From 19475bd46d8fd87ef28dcdc1ad15574272b31036 Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Mon, 6 Jan 2025 10:10:33 +0100 Subject: [PATCH] fix: base-controller --- api/src/utils/generics/base-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) => {