Skip to content

Commit

Permalink
fix(fu-ds): bad syntaxe for in in pgpool (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-scherer authored Oct 22, 2024
2 parents d46172a + 6799a55 commit be95110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/services/DemandeSejour.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ LEFT JOIN front.demande_sejour_message dsm ON dsm.declaration_id = ds.id AND dsm
FROM front.demande_sejour_message dsmax
WHERE dsmax.declaration_id = ds.id)
WHERE
o.id IN ($1)
o.id = ANY ($1)
`,
[organismeIds],
],
Expand Down Expand Up @@ -891,7 +891,7 @@ module.exports.get = async ({ sortBy }, organismesId) => {
}
const finalQuery = queryGet[0] + querySorted;
const queryParams = queryGet[1];
const response = await pool.query(finalQuery, queryParams[0]);
const response = await pool.query(finalQuery, [queryParams[0]]);
log.i("get - DONE");
const demandes = response.rows;
return demandes;
Expand Down

0 comments on commit be95110

Please sign in to comment.