Fix notifications index

This commit is contained in:
Alex Gleason 2024-02-12 12:39:47 -06:00 committed by Mark Felder
parent 991807080b
commit 8daf19ec0f
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ def last_read_query(user) do
where: q.seen == true,
select: type(q.id, :string),
limit: 1,
order_by: [desc: :id]
order_by: fragment("? desc nulls last", q.id)
)
end