@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 +1 -1
- package/src/core/index.ts +3 -9
package/package.json
CHANGED
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
|
|