@cuboapp/api-backend 3.0.5 → 3.0.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuboapp/api-backend",
3
- "version": "3.0.5",
3
+ "version": "3.0.6",
4
4
  "description": "Backend Api for CuboApp",
5
5
  "main": "src/index.ts",
6
6
  "repository": "git@github.com:cuboapp/api-backend.git",
package/src/core/index.ts CHANGED
@@ -529,14 +529,7 @@ export class CuboBackendApi<T extends CuboApiEntitiesMap<T>, A extends unknown =
529
529
  if (this.options.hooks?.onAfterUpdate && !this.excluded(opts, 'baseHooks')) {
530
530
  await this.options.hooks.onAfterUpdate(entity, row, prevById.get((row as any).id) as T[K], opts)
531
531
  }
532
- this.crdtPush(
533
- 'update',
534
- entity,
535
- row,
536
- opts,
537
- prevById.get((row as any).id),
538
- Object.keys(dto)
539
- )
532
+ this.crdtPush('update', entity, row, opts, prevById.get((row as any).id), Object.keys(dto))
540
533
  }
541
534
 
542
535
  return updated
@@ -670,7 +663,8 @@ export class CuboBackendApi<T extends CuboApiEntitiesMap<T>, A extends unknown =
670
663
  req,
671
664
  auth: opts.auth as A,
672
665
  performer_id: opts.performer_id,
673
- queryOptions
666
+ queryOptions,
667
+ transaction: opts?.transaction
674
668
  }
675
669
  }
676
670