mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-11-27 11:45:23 +00:00
fix: alias parsing
This commit is contained in:
parent
8773e5013d
commit
a8231eef25
|
@ -1668,8 +1668,10 @@ impl Rooms {
|
|||
.scan_prefix(prefix)
|
||||
.values()
|
||||
.map(|bytes| {
|
||||
Ok(serde_json::from_slice(&bytes?)
|
||||
.map_err(|_| Error::bad_database("Alias in aliasid_alias is invalid."))?)
|
||||
Ok(utils::string_from_bytes(&bytes?)
|
||||
.map_err(|_| Error::bad_database("Invalid alias bytes in aliasid_alias."))?
|
||||
.try_into()
|
||||
.map_err(|_| Error::bad_database("Invalid alias in aliasid_alias."))?)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue