From 817f88e1a4ae561448731e411d2b010aef25d768 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 15 Aug 2024 05:33:16 +0200 Subject: [PATCH] fix: include seen in notifications columns --- upub/core/src/selector/query.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/upub/core/src/selector/query.rs b/upub/core/src/selector/query.rs index 6cf7f1a..8fdf63f 100644 --- a/upub/core/src/selector/query.rs +++ b/upub/core/src/selector/query.rs @@ -150,10 +150,17 @@ impl Query { select = select.filter(model::notification::Column::Seen.eq(false)); } - select = select.select_only(); + select = select.select_only() + .select_column_as( + model::notification::Column::Seen, + format!("{}{}", model::notification::Entity.table_name(), model::notification::Column::Seen.to_string()) + ); for column in model::activity::Column::iter() { - select = select.select_column(column); + select = select.select_column_as( + column, + format!("{}{}", model::activity::Entity.table_name(), column.to_string()) + ); } select