fix: add published field while selecting objects

This commit is contained in:
əlemi 2024-12-26 16:21:11 +01:00
parent 54b05f79ed
commit 0c6be216b7
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -58,6 +58,11 @@ impl Query {
select = select.select_column_as(col, format!("{}{}", model::object::Entity.table_name(), col.to_string()));
}
select = select.select_column_as(
model::addressing::Column::Published,
format!("{}{}", model::addressing::Entity.table_name(), model::addressing::Column::Published.to_string())
);
if let Some(uid) = my_id {
select = select
.join(