diff --git a/apps/backend/queries/annunci.go b/apps/backend/queries/annunci.go index 4c1c8a9..632c9d0 100644 --- a/apps/backend/queries/annunci.go +++ b/apps/backend/queries/annunci.go @@ -21,7 +21,7 @@ func AnnunciGetActive() ([]string, error) { func AnnunciInsert(annunci typesdefs.AnnunciParsed) error { //SET ALL WEB TO FALSE - _, err := Db.Dbpool.Exec(Db.Ctx, "UPDATE public.annunci SET web = false") + _, err := Db.Dbpool.Exec(Db.Ctx, "UPDATE public.annunci SET web = false, homepage = false, stato='Sospeso'") if err != nil { return fmt.Errorf("failed to set all web to false: %w", err)