Skip to content

Commit 85190f7

Browse files
committed
feat: add param to filter by provider logins
1 parent 12b6121 commit 85190f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/algora/accounts/accounts.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ defmodule Algora.Accounts do
3131
| {:limit, non_neg_integer()}
3232
| {:handle, String.t()}
3333
| {:handles, [String.t()]}
34+
| {:provider_logins, [String.t()]}
3435
| {:earnings_gt, Money.t()}
3536
| {:sort_by_country, String.t()}
3637
| {:sort_by_tech_stack, [String.t()]}
@@ -56,6 +57,9 @@ defmodule Algora.Accounts do
5657
{:handles, handles}, query ->
5758
from([b] in query, where: b.handle in ^handles)
5859

60+
{:provider_logins, logins}, query ->
61+
from([b] in query, where: b.provider_login in ^logins)
62+
5963
{:earnings_gt, min_amount}, query ->
6064
from([b, earnings: e] in query,
6165
where:

0 commit comments

Comments
 (0)