From 563f45d42e9bab44869e90912de5cbf484031505 Mon Sep 17 00:00:00 2001 From: kirillgroshkov Date: Mon, 5 Feb 2024 17:21:29 +0100 Subject: [PATCH] fix: savePatch options should be optional --- src/commondao/common.dao.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commondao/common.dao.ts b/src/commondao/common.dao.ts index dfc519d..90e2be9 100644 --- a/src/commondao/common.dao.ts +++ b/src/commondao/common.dao.ts @@ -612,7 +612,7 @@ export class CommonDao { * Similar to `save` with skipIfEquals. * Similar to `patch`, but doesn't load the object from the Database. */ - async savePatch(bm: BM, patch: Partial, opt: CommonDaoSaveBatchOptions): Promise { + async savePatch(bm: BM, patch: Partial, opt?: CommonDaoSaveBatchOptions): Promise { const patched: BM = { ...bm, ...patch,