Skip to content

Commit

Permalink
fix: base-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
abdou6666 committed Jan 6, 2025
1 parent 5218325 commit 19475bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/utils/generics/base-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]) => {
Expand Down

0 comments on commit 19475bd

Please sign in to comment.