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

View File

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