Fix notifications index

This commit is contained in:
Alex Gleason 2024-02-12 12:39:47 -06:00
parent 6ea0d8e7e7
commit b46c19c36a
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -93,7 +93,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