mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-25 23:09:22 +00:00
Fix bad output
This commit is contained in:
parent
51e118d3cf
commit
dcd24e5638
@ -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")?,
|
||||||
|
Loading…
Reference in New Issue
Block a user