fix: host deletion query error

This commit is contained in:
hstyi
2025-06-30 16:26:32 +08:00
committed by hstyi
parent f044e0480e
commit 1138f48a6e

View File

@@ -55,6 +55,7 @@ class HostManager private constructor() : Disposable {
fun getHost(id: String): Host? {
val data = databaseManager.data(id) ?: return null
if (data.type != DataType.Host.name) return null
if (data.deleted) return null
return ohMyJson.decodeFromString(data.data)
}