Fix notifications index
This commit is contained in:
parent
991807080b
commit
8daf19ec0f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue