fix messages count
This commit is contained in:
parent
b78eae0f7e
commit
9b1ac5ad52
|
@ -146,7 +146,7 @@ async fn server_responce_getter(
|
|||
let user = get_user_by_id(Id(json_clone.clone().id), &db).unwrap();
|
||||
|
||||
add_message(DBMessage{
|
||||
id: user.messages_count,
|
||||
id: user.my_messages_count,
|
||||
date: json_clone.date,
|
||||
user_id: Id(json_clone.id),
|
||||
message: json_clone.message,
|
||||
|
|
Loading…
Reference in a new issue