mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix: base-controller
This commit is contained in:
parent
5218325426
commit
19475bd46d
@ -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]) => {
|
||||
|
Loading…
Reference in New Issue
Block a user