fix: base-controller

This commit is contained in:
abdou6666 2025-01-06 10:10:33 +01:00
parent 5218325426
commit 19475bd46d

View File

@ -44,7 +44,7 @@ export abstract class BaseController<
* @throws {NotFoundException} Throws a NotFoundException if any invalid IDs are found.
*/
protected validate({ dto, allowedIds }: TValidateProps<T, TStub>): void {
const exceptions = [];
const exceptions: string[] = [];
Object.entries(dto)
.filter(([key]) => Object.keys(allowedIds).includes(key))
.forEach(([field]) => {