Skip to content

Commit

Permalink
fix SqlGetFollow (#173)
Browse files Browse the repository at this point in the history
Co-authored-by: Christophe Ninucci <[email protected]>
  • Loading branch information
chrnin and Christophe Ninucci authored Jun 4, 2023
1 parent 4b06843 commit abc9928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/wekan/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ select s.siret, s.siren, s.raison_sociale, s.commune,
from v_summaries s
inner join etablissement_follow f on f.active and f.siret = s.siret and f.username = $2
inner join v_entreprise_follow fe on fe.siren = s.siren and fe.username = $2
where (s.code_departement = any($3) or coalesce($3, '{}') = '{}') and (s.siret != any($4) or $4 is null) and (s.raison_sociale ilike $5 or $5 is null)`
where (s.code_departement = any($3) or coalesce($3, '{}') = '{}') and (not (s.siret = any($4)) or $4 is null) and (s.raison_sociale ilike $5 or $5 is null)`

var sqlDbExport = `select v.siret, v.raison_sociale, v.code_departement, v.libelle_departement, v.commune,
coalesce(v.code_territoire_industrie, ''), coalesce(v.libelle_territoire_industrie, ''), v.siege, coalesce(v.raison_sociale_groupe, ''),
Expand Down

0 comments on commit abc9928

Please sign in to comment.