@naturalcycles/datastore-lib 3.23.1 → 3.23.2

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.
@@ -206,8 +206,8 @@ class DatastoreDB extends db_lib_1.BaseCommonDB {
206
206
  const tx = this.ds().transaction();
207
207
  try {
208
208
  await tx.run();
209
- const ops = (0, db_lib_1.mergeDBOperations)(_tx.ops);
210
- for await (const op of ops) {
209
+ // const ops = mergeDBOperations(_tx.ops)
210
+ for await (const op of _tx.ops) {
211
211
  if (op.type === 'saveBatch') {
212
212
  await this.saveBatch(op.table, op.rows, { ...opt, tx });
213
213
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/datastore-lib",
3
- "version": "3.23.1",
3
+ "version": "3.23.2",
4
4
  "description": "Opinionated library to work with Google Datastore",
5
5
  "scripts": {
6
6
  "prepare": "husky install"
@@ -6,7 +6,6 @@ import {
6
6
  CommonDBSaveMethod,
7
7
  DBQuery,
8
8
  DBTransaction,
9
- mergeDBOperations,
10
9
  RunQueryResult,
11
10
  } from '@naturalcycles/db-lib'
12
11
  import {
@@ -334,9 +333,9 @@ export class DatastoreDB extends BaseCommonDB implements CommonDB {
334
333
  try {
335
334
  await tx.run()
336
335
 
337
- const ops = mergeDBOperations(_tx.ops)
336
+ // const ops = mergeDBOperations(_tx.ops)
338
337
 
339
- for await (const op of ops) {
338
+ for await (const op of _tx.ops) {
340
339
  if (op.type === 'saveBatch') {
341
340
  await this.saveBatch(op.table, op.rows, { ...opt, tx })
342
341
  } else if (op.type === 'deleteByIds') {