Przeglądaj źródła

Merge branch 'hotfix/supprimer-les-events-internes'

opentalent 1 rok temu
rodzic
commit
f820c9f4f4
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      sql/schema-extensions/001-view_public_events.sql

+ 3 - 3
sql/schema-extensions/001-view_public_events.sql

@@ -1,5 +1,4 @@
-CREATE OR REPLACE VIEW view_public_events
-AS
+CREATE OR REPLACE VIEW view_public_events AS
     SELECT
         b.uuid,
         b.organization_id AS organizationId,
@@ -46,7 +45,8 @@ AS
         AND b.datetimeEnd >= NOW()
         AND b.visibility = 'PUBLIC_VISIBILITY'
         AND b.isCanceled = 0
-UNION
+        AND b.gender_id <> 7 
+    UNION
     SELECT
         aw.uuid,
         null AS organizationId,