This commit is contained in:
parent
63a1bf2a8a
commit
4ebdf32495
1 changed files with 3 additions and 3 deletions
|
|
@ -720,9 +720,9 @@ export const getAnnunciAvailableToAdd = async (
|
||||||
let qry = tx
|
let qry = tx
|
||||||
.$pickTables<"annunci">()
|
.$pickTables<"annunci">()
|
||||||
.selectFrom("annunci")
|
.selectFrom("annunci")
|
||||||
.select(["id", "codice", "titolo_it"])
|
.select(["id", "codice", "titolo_it"]);
|
||||||
.where("annunci.web", "=", true)
|
//.where("annunci.web", "=", true)
|
||||||
.where("stato", "!=", "Sospeso");
|
//.where("stato", "!=", "Sospeso");
|
||||||
|
|
||||||
if (ids.length > 0) {
|
if (ids.length > 0) {
|
||||||
qry = qry.where("id", "not in", ids);
|
qry = qry.where("id", "not in", ids);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue