mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 09:35:00 +02:00
UBERF-8508: Get rid of Mongo in storage adapter (#6989)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -88,8 +88,10 @@ export class DomainTxMiddleware extends BaseMiddleware implements Middleware {
|
||||
}
|
||||
}
|
||||
|
||||
const r = await ctx.with('adapter-tx', { domain }, async (ctx) => await adapter.tx(ctx, ...txes), {
|
||||
txes: txes.length
|
||||
const r = await ctx.with('adapter-tx', { domain }, (ctx) => adapter.tx(ctx, ...txes), {
|
||||
txes: txes.length,
|
||||
classes: Array.from(new Set(txes.map((it) => it.objectClass))),
|
||||
_classes: Array.from(new Set(txes.map((it) => it._class)))
|
||||
})
|
||||
|
||||
if (Array.isArray(r)) {
|
||||
|
||||
Reference in New Issue
Block a user