fix: include seen in notifications columns

This commit is contained in:
əlemi 2024-08-15 05:33:16 +02:00
parent c1ab0d474e
commit 817f88e1a4
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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