diff --git a/src/commondao/common.dao.ts b/src/commondao/common.dao.ts index f2c6867..3ffba82 100644 --- a/src/commondao/common.dao.ts +++ b/src/commondao/common.dao.ts @@ -88,7 +88,7 @@ export class CommonDao< } // CREATE - create(part: Partial, opt: CommonDaoOptions = {}): Saved { + create(part: Partial = {}, opt: CommonDaoOptions = {}): Saved { let bm = this.cfg.hooks!.beforeCreate!(part) as BM bm = this.validateAndConvert(bm, this.cfg.bmSchema, DBModelType.BM, opt)