Fix user update (#23)

This commit is contained in:
LightSage
2022-01-03 14:54:05 -06:00
committed by GitHub
parent 3200b06019
commit 9fc5ee1c84
+2 -2
View File
@@ -279,8 +279,8 @@ class WebsocketHandler:
# the keys have . in them so i need to replace with _
data = payload["data"]
data["profile_content"] = data.get("profile.content", None)
data["profile_background"] = data.get("profile.background", None)
data["profile_content"] = data.pop("profile.content", None)
data["profile_background"] = data.pop("profile.background", None)
user._update(**data)