Merge branch 'fix-notifications-index' into 'main'

Fix notifications index

See merge request soapbox-pub/rebased!301
This commit is contained in:
Alex Gleason 2024-02-12 18:57:36 +00:00
commit d6f91ad370

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