fix messages count

This commit is contained in:
horhik 2021-04-29 10:23:11 +03:00
parent b78eae0f7e
commit 9b1ac5ad52

View file

@ -146,7 +146,7 @@ async fn server_responce_getter(
let user = get_user_by_id(Id(json_clone.clone().id), &db).unwrap(); let user = get_user_by_id(Id(json_clone.clone().id), &db).unwrap();
add_message(DBMessage{ add_message(DBMessage{
id: user.messages_count, id: user.my_messages_count,
date: json_clone.date, date: json_clone.date,
user_id: Id(json_clone.id), user_id: Id(json_clone.id),
message: json_clone.message, message: json_clone.message,