fix device migration

This commit is contained in:
Aiden McClelland
2026-01-22 10:27:49 -07:00
parent 0534b5813b
commit 2f4bb1e35e

View File

@@ -32,6 +32,8 @@ impl VersionT for Version {
}
#[instrument(skip_all)]
fn up(self, db: &mut Value, _: Self::PreUpRes) -> Result<Value, Error> {
db["public"]["serverInfo"]["devices"] = Value::Array(Default::default());
let lang = db["public"]["ui"]
.as_object_mut()
.map_or(Value::Null, |m| m.remove("language").unwrap_or_default());