mirror of
https://github.com/TermoraDev/termora.git
synced 2026-01-16 02:12:58 +08:00
fix: host deletion query error
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user