mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 18:45:57 +00:00
Merge pull request #520 from Hexastack/fix/base-controller-ts-strict-null-check
fix: base-controller
This commit is contained in:
commit
b4b1edfa09
@ -44,7 +44,7 @@ export abstract class BaseController<
|
|||||||
* @throws {NotFoundException} Throws a NotFoundException if any invalid IDs are found.
|
* @throws {NotFoundException} Throws a NotFoundException if any invalid IDs are found.
|
||||||
*/
|
*/
|
||||||
protected validate({ dto, allowedIds }: TValidateProps<T, TStub>): void {
|
protected validate({ dto, allowedIds }: TValidateProps<T, TStub>): void {
|
||||||
const exceptions = [];
|
const exceptions: string[] = [];
|
||||||
Object.entries(dto)
|
Object.entries(dto)
|
||||||
.filter(([key]) => Object.keys(allowedIds).includes(key))
|
.filter(([key]) => Object.keys(allowedIds).includes(key))
|
||||||
.forEach(([field]) => {
|
.forEach(([field]) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user