@naturalcycles/db-lib 10.49.0 → 10.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -447,7 +447,7 @@ export class CommonDao {
|
|
|
447
447
|
const { beforeSave } = this.cfg.hooks;
|
|
448
448
|
const { chunkSize = 500, chunkConcurrency = 32, errorMode } = opt;
|
|
449
449
|
await p
|
|
450
|
-
.
|
|
450
|
+
.mapSync(bm => {
|
|
451
451
|
this.assignIdCreatedUpdated(bm, opt);
|
|
452
452
|
const dbm = this.bmToDBM(bm, opt);
|
|
453
453
|
beforeSave?.(dbm);
|
package/package.json
CHANGED
|
@@ -597,8 +597,8 @@ export class CommonDao<
|
|
|
597
597
|
const { chunkSize = 500, chunkConcurrency = 32, errorMode } = opt
|
|
598
598
|
|
|
599
599
|
await p
|
|
600
|
-
.
|
|
601
|
-
|
|
600
|
+
.mapSync(
|
|
601
|
+
bm => {
|
|
602
602
|
this.assignIdCreatedUpdated(bm, opt)
|
|
603
603
|
const dbm = this.bmToDBM(bm, opt)
|
|
604
604
|
beforeSave?.(dbm)
|