Skip to content

Commit 1e2e03a

Browse files
committed
s/min_earnings/earnings_gt
1 parent 17c6e45 commit 1e2e03a

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

lib/algora/accounts/accounts.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defmodule Algora.Accounts do
1818
| {:limit, non_neg_integer()}
1919
| {:handle, String.t()}
2020
| {:handles, [String.t()]}
21-
| {:min_earnings, non_neg_integer()}
21+
| {:earnings_gt, non_neg_integer()}
2222
| {:sort_by_country, String.t()}
2323
| {:sort_by_tech_stack, [String.t()]}
2424

@@ -37,7 +37,7 @@ defmodule Algora.Accounts do
3737
{:handles, handles}, query ->
3838
from([b] in query, where: b.handle in ^handles)
3939

40-
{:min_earnings, min_amount}, query ->
40+
{:earnings_gt, min_amount}, query ->
4141
from([b, earnings: e] in query,
4242
where:
4343
fragment(

lib/algora_web/live/job/create_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ defmodule AlgoraWeb.Job.CreateLive do
357357
limit: 5,
358358
sort_by_country: job.country,
359359
sort_by_tech_stack: job.tech_stack,
360-
min_earnings: Money.new!(200, "USD")
360+
earnings_gt: Money.new!(200, "USD")
361361
)
362362
end
363363
end

lib/algora_web/live/onboarding/org.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ defmodule AlgoraWeb.Onboarding.OrgLive do
537537
limit: 5,
538538
sort_by_tech_stack: tech_stack,
539539
sort_by_country: socket.assigns.current_country,
540-
min_earnings: Money.new!(200, "USD")
540+
earnings_gt: Money.new!(200, "USD")
541541
)
542542

543543
assign(socket, :matching_devs, matching_devs)

lib/algora_web/live/org/dashboard_admin_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ defmodule AlgoraWeb.Org.DashboardAdminLive do
802802
Accounts.list_developers(
803803
sort_by_tech_stack: tech_stack,
804804
limit: 3,
805-
min_earnings: Money.new!(200, "USD")
805+
earnings_gt: Money.new!(200, "USD")
806806
)
807807

808808
reviews = developers |> Enum.map(& &1.id) |> Reviews.get_top_reviews_for_users()

lib/algora_web/live/org/dashboard_public_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ defmodule AlgoraWeb.Org.DashboardPublicLive do
1212
org = Organizations.get_org_by_handle!(handle)
1313
open_bounties = Bounties.list_bounties(owner_id: org.id, status: :open, limit: 5)
1414
completed_bounties = Bounties.list_bounties(owner_id: org.id, status: :paid, limit: 5)
15-
top_earners = Accounts.list_developers(org_id: org.id, limit: 10, min_earnings: Money.zero(:USD))
15+
top_earners = Accounts.list_developers(org_id: org.id, limit: 10, earnings_gt: Money.zero(:USD))
1616
stats = Bounties.fetch_stats(org.id)
1717

1818
socket =

lib/algora_web/live/org/job_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ defmodule AlgoraWeb.Org.JobLive do
9393
limit: 5,
9494
sort_by_country: job.country,
9595
sort_by_tech_stack: job.tech_stack,
96-
min_earnings: Money.new!(200, "USD")
96+
earnings_gt: Money.new!(200, "USD")
9797
)
9898

9999
bounties = Bounties.list_bounties(limit: 8)

lib/algora_web/live/project/create_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ defmodule AlgoraWeb.Project.CreateLive do
335335
limit: 5,
336336
sort_by_country: project.country,
337337
sort_by_tech_stack: project.tech_stack,
338-
min_earnings: Money.new!(200, "USD")
338+
earnings_gt: Money.new!(200, "USD")
339339
)
340340
end
341341
end

lib/algora_web/live/project/view_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ defmodule AlgoraWeb.Project.ViewLive do
2929
limit: 6,
3030
sort_by_country: project.country,
3131
sort_by_tech_stack: project.tech_stack,
32-
min_earnings: Money.new!(200, "USD")
32+
earnings_gt: Money.new!(200, "USD")
3333
)
3434

3535
{:ok,

0 commit comments

Comments
 (0)