We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b7ca03 commit 0fbda92Copy full SHA for 0fbda92
1 file changed
services/libs/data-access-layer/src/members/segments.ts
@@ -191,7 +191,7 @@ export async function findMemberManualAffiliation(
191
OR ("dateStart" <= $(timestamp) AND "dateEnd" IS NULL)
192
OR ("dateStart" IS NULL AND "dateEnd" IS NULL)
193
)
194
- ORDER BY "dateStart" DESC, id
+ ORDER BY "dateStart" DESC NULLS LAST, id
195
LIMIT 1
196
`,
197
{
0 commit comments