forked from jmug/stoatchat
Events: Distribute user updates to servers.
Fix: Deleting a server now correctly deletes all associated objects.
This commit is contained in:
@@ -6,5 +6,5 @@ use rocket_contrib::json::JsonValue;
|
||||
|
||||
#[get("/unreads")]
|
||||
pub async fn req(user: User) -> Result<JsonValue> {
|
||||
Ok(json!(user.fetch_unreads().await?))
|
||||
Ok(json!(User::fetch_unreads(&user.id).await?))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user