mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 15:20:18 +00:00
Fix serverStorage (#6283)
This commit is contained in:
parent
4b7ce58fe9
commit
f09afc7eb3
@ -137,8 +137,7 @@ export class TServerStorage implements ServerStorage {
|
|||||||
if (h !== undefined) {
|
if (h !== undefined) {
|
||||||
const dbDomains = adapterDomains.get(adapter) ?? (await h.listDomains())
|
const dbDomains = adapterDomains.get(adapter) ?? (await h.listDomains())
|
||||||
adapterDomains.set(adapter, dbDomains)
|
adapterDomains.set(adapter, dbDomains)
|
||||||
const dbIdIndex = dbDomains.has(d)
|
info.exists = dbDomains.has(d)
|
||||||
info.exists = dbIdIndex !== undefined
|
|
||||||
if (info.exists) {
|
if (info.exists) {
|
||||||
info.documents = await h.estimatedCount(d)
|
info.documents = await h.estimatedCount(d)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user