Skip to content

Commit

Permalink
Merge pull request #140 from mission-apprentissage/fix-restitution
Browse files Browse the repository at this point in the history
fix: nullif timezone
  • Loading branch information
LucasDetre authored Nov 9, 2023
2 parents 784673b + 1b54229 commit 0aea483
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ const findRestitutionIntentionsStatsInDB = async ({
.$call((q) => {
if (!orderBy) return q;
return q.orderBy(
sql`NULLIF(${sql.ref(orderBy.column)},'')`,
sql`${sql.ref(orderBy.column)}`,
sql`${sql.raw(orderBy.order)} NULLS LAST`
);
})
Expand Down

0 comments on commit 0aea483

Please sign in to comment.