mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-26 04:23:58 +03:00
Fix DbAdapterManager to handle domain names (#6605)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
9459fdecdf
commit
f24524058c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user