This commit is contained in:
Paul Makles
2020-08-30 13:40:29 +01:00
parent 81111c5937
commit 000ffe6aaa

View File

@@ -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!({