Skip to content

Commit

Permalink
fix: allow modelType to be optional string
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Dec 10, 2022
1 parent 4b83836 commit a90ae8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commondao/common.dao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ export class CommonDao<
validateAndConvert<IN, OUT = IN>(
obj: Partial<IN>,
schema: ObjectSchemaTyped<IN> | AjvSchema<IN> | undefined,
modelType: DBModelType,
modelType?: DBModelType | string,
opt: CommonDaoOptions = {},
): OUT {
// `raw` option completely bypasses any processing
Expand Down

0 comments on commit a90ae8b

Please sign in to comment.