Skip to content

Commit

Permalink
Merge pull request #520 from Hexastack/fix/base-controller-ts-strict-…
Browse files Browse the repository at this point in the history
…null-check

fix: base-controller
  • Loading branch information
marrouchi authored Jan 6, 2025
2 parents 5989c4b + 19475bd commit b4b1edf
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 b4b1edf

Please sign in to comment.