fix: include seen in notifications columns
This commit is contained in:
parent
c1ab0d474e
commit
817f88e1a4
1 changed files with 9 additions and 2 deletions
|
@ -150,10 +150,17 @@ impl Query {
|
||||||
select = select.filter(model::notification::Column::Seen.eq(false));
|
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() {
|
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
|
select
|
||||||
|
|
Loading…
Reference in a new issue