use database::Json() to serialise MSC4133 profile value before insert
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
17273b1cea
commit
1b9c331049
1 changed files with 1 additions and 1 deletions
|
@ -866,7 +866,7 @@ impl Service {
|
||||||
let key = (user_id, profile_key);
|
let key = (user_id, profile_key);
|
||||||
|
|
||||||
if let Some(value) = profile_key_value {
|
if let Some(value) = profile_key_value {
|
||||||
self.db.useridprofilekey_value.put(key, value);
|
self.db.useridprofilekey_value.put(key, Json(value));
|
||||||
} else {
|
} else {
|
||||||
self.db.useridprofilekey_value.del(key);
|
self.db.useridprofilekey_value.del(key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue