Fix DbAdapterManager to handle domain names (#6605)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-09-17 20:34:54 +05:00 committed by GitHub
parent 9459fdecdf
commit f24524058c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,7 +87,8 @@ export class DbAdapterManagerImpl implements DBAdapterManager {
}
private async updateInfo (d: Domain, adapterDomains: Map<DbAdapter, Set<Domain>>, info: DomainInfo): Promise<void> {
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) {