From f24524058cf74a897adcdd90f51edf3095d8ba67 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Tue, 17 Sep 2024 20:34:54 +0500 Subject: [PATCH] Fix DbAdapterManager to handle domain names (#6605) Signed-off-by: Denis Bykhov --- server/core/src/dbAdapterManager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/core/src/dbAdapterManager.ts b/server/core/src/dbAdapterManager.ts index 0a21ff9cab..985462a3b2 100644 --- a/server/core/src/dbAdapterManager.ts +++ b/server/core/src/dbAdapterManager.ts @@ -87,7 +87,8 @@ export class DbAdapterManagerImpl implements DBAdapterManager { } private async updateInfo (d: Domain, adapterDomains: Map>, info: DomainInfo): Promise { - const adapter = this.adapters.get(d) ?? this.defaultAdapter + const name = this._domains[d] ?? '#default' + const adapter = this.adapters.get(name) ?? this.defaultAdapter if (adapter !== undefined) { const h = adapter.helper?.() if (h !== undefined) {