Skip to content

Commit dff256a

Browse files
committed
add TODO for sorting paid bounties by paid_at timestamp
1 parent 44d4217 commit dff256a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/algora/bounties/bounties.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,7 @@ defmodule Algora.Bounties do
994994
|> where([b], not is_nil(b.amount))
995995
|> where([b], b.status != :cancelled)
996996
|> apply_criteria(criteria)
997+
# TODO: sort by b.paid_at if criteria[:status] == :paid
997998
|> order_by([b], desc: b.inserted_at, desc: b.id)
998999
|> select([b, o: o, t: t, ro: ro, r: r], %{
9991000
id: b.id,

0 commit comments

Comments
 (0)