Skip to content

Commit

Permalink
fix: savePatch options should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Feb 5, 2024
1 parent f28f3a9 commit 563f45d
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 @@ -612,7 +612,7 @@ export class CommonDao<BM extends BaseDBEntity, DBM extends BaseDBEntity = BM> {
* Similar to `save` with skipIfEquals.
* Similar to `patch`, but doesn't load the object from the Database.
*/
async savePatch(bm: BM, patch: Partial<BM>, opt: CommonDaoSaveBatchOptions<DBM>): Promise<BM> {
async savePatch(bm: BM, patch: Partial<BM>, opt?: CommonDaoSaveBatchOptions<DBM>): Promise<BM> {
const patched: BM = {
...bm,
...patch,
Expand Down

0 comments on commit 563f45d

Please sign in to comment.