1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-29 08:46:27 +00:00

Fix bad output

This commit is contained in:
Pierre HUBERT 2021-02-14 16:09:03 +01:00
parent 51e118d3cf
commit dcd24e5638

View File

@ -403,6 +403,13 @@ pub fn get_list_unread(user_id: &UserID) -> ResultBoxError<Vec<UnreadConversatio
.set_custom_where("list.last_active = messages.time_insert") .set_custom_where("list.last_active = messages.time_insert")
.set_order("list.last_active DESC") .set_order("list.last_active DESC")
.add_field("messages.conv_id")
.add_field("name")
.add_field("last_active")
.add_field("messages.user_id")
.add_field("message")
.exec(|res| Ok(UnreadConversation { .exec(|res| Ok(UnreadConversation {
id: res.get_u64("conv_id")?, id: res.get_u64("conv_id")?,
name: res.get_optional_str("name")?, name: res.get_optional_str("name")?,