mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 21:47:02 +00:00
Logging + database migrations system.
This commit is contained in:
@@ -38,7 +38,6 @@ impl Handler for Server {
|
||||
StateResult::Success(user_id) => {
|
||||
let user = crate::database::user::fetch_user(&user_id).unwrap().unwrap();
|
||||
|
||||
self.user_id = Some(user_id);
|
||||
self.sender.send(
|
||||
json!({
|
||||
"type": "authenticate",
|
||||
@@ -47,12 +46,13 @@ impl Handler for Server {
|
||||
.to_string(),
|
||||
)?;
|
||||
|
||||
self.user_id = Some(user_id);
|
||||
self.sender.send(
|
||||
json!({
|
||||
"type": "ready",
|
||||
"data": {
|
||||
// ! FIXME: rewrite
|
||||
"user": user
|
||||
"user": user,
|
||||
}
|
||||
})
|
||||
.to_string(),
|
||||
|
||||
Reference in New Issue
Block a user