CF Transactor(initial) (#7037)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
Signed-off-by: Nikolay Chunosov <Chunosov.N@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-12-19 12:06:38 +07:00
committed by GitHub
parent 6e53e76fbb
commit cdcec3efca
43 changed files with 1606 additions and 451 deletions
-4
View File
@@ -14,7 +14,6 @@
//
import { DOMAIN_TX, type MeasureContext } from '@hcengineering/core'
import { PlatformError, unknownStatus } from '@hcengineering/platform'
import type {
DbAdapter,
DbConfiguration,
@@ -49,9 +48,6 @@ export class DBAdapterMiddleware extends BaseMiddleware implements Middleware {
const adapters = new Map<string, DbAdapter>()
await ctx.with('create-adapters', {}, async (ctx) => {
if (this.context.storageAdapter == null) {
throw new PlatformError(unknownStatus('StorageSdapter is not specified'))
}
for (const key in this.conf.adapters) {
const adapterConf = this.conf.adapters[key]
adapters.set(