Skip to content
Snippets Groups Projects
Commit 000ffe6a authored by insert's avatar insert
Browse files

Fix bug.

parent 81111c59
Branches
Tags
No related merge requests found
......@@ -47,13 +47,20 @@ impl Handler for Server {
.to_string(),
)?;
self.sender.send(
json!({
"type": "ready",
"data": user.create_payload()
})
.to_string(),
)
if let Ok(payload) = user.create_payload() {
self.sender.send(
json!({
"type": "ready",
"data": payload
})
.to_string(),
)
} else {
// ! TODO: FIXME: ALL THE NOTIFICATIONS CODE NEEDS TO BE
// ! RESTRUCTURED, IT IS UTTER GARBAGE. :)))))
Ok(())
}
}
StateResult::DatabaseError => self.sender.send(
json!({
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment