Fix serverStorage (#6283)

This commit is contained in:
Denis Bykhov 2024-08-07 19:52:08 +05:00 committed by GitHub
parent 4b7ce58fe9
commit f09afc7eb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -137,8 +137,7 @@ export class TServerStorage implements ServerStorage {
if (h !== undefined) {
const dbDomains = adapterDomains.get(adapter) ?? (await h.listDomains())
adapterDomains.set(adapter, dbDomains)
const dbIdIndex = dbDomains.has(d)
info.exists = dbIdIndex !== undefined
info.exists = dbDomains.has(d)
if (info.exists) {
info.documents = await h.estimatedCount(d)
}