File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -865,17 +865,17 @@ defmodule Algora.Payments do
865
865
}
866
866
)
867
867
868
+ # case Algora.Settings.get_featured_transactions() do
869
+ # ids when is_list(ids) and ids != [] ->
870
+ # where(tx_query, [tx], tx.id in ^ids)
871
+ # _ ->
868
872
tx_query =
869
- case Algora.Settings . get_featured_transactions ( ) do
870
- ids when is_list ( ids ) and ids != [ ] ->
871
- where ( tx_query , [ tx ] , tx . id in ^ ids )
873
+ tx_query
874
+ |> where ( [ tx ] , tx . succeeded_at > ago ( 2 , "week" ) )
875
+ |> order_by ( [ tx ] , desc: tx . net_amount )
876
+ |> limit ( 10 )
872
877
873
- _ ->
874
- tx_query
875
- |> where ( [ tx ] , tx . succeeded_at > ago ( 2 , "week" ) )
876
- |> order_by ( [ tx ] , desc: tx . net_amount )
877
- |> limit ( 10 )
878
- end
878
+ # end
879
879
880
880
transactions =
881
881
tx_query
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ defmodule Algora.Settings do
207
207
208
208
def get_featured_transactions do
209
209
case get ( "featured_transactions" ) do
210
- % { "ids" => ids } when is_list ( ids ) -> nil
210
+ % { "ids" => ids } when is_list ( ids ) -> ids
211
211
_ -> nil
212
212
end
213
213
end
You can’t perform that action at this time.
0 commit comments