Skip to content

Commit 0dd18d6

Browse files
committed
fix: call cloud fn with mfa args
1 parent 9e3e307 commit 0dd18d6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/algora/cloud.ex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ defmodule Algora.Cloud do
99
call(AlgoraCloud, :list_top_matches, [opts])
1010
end
1111

12-
def get_contribution_score(tech_stack, user, contributions_map) do
13-
call(AlgoraCloud, :get_contribution_score, [tech_stack, user, contributions_map])
12+
def truncate_matches(org, matches) do
13+
call(AlgoraCloud, :truncate_matches, [org, matches])
14+
end
15+
16+
def get_contribution_score(job, user, contributions_map) do
17+
call(AlgoraCloud, :get_contribution_score, [job, user, contributions_map])
1418
end
1519

1620
defp call(module, function, args) do

lib/algora_web/live/org/job_live.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -899,11 +899,7 @@ defmodule AlgoraWeb.Org.JobLive do
899899
imports = Enum.filter(all_applicants, & &1.imported_at)
900900
matches = Settings.get_job_matches(socket.assigns.job)
901901

902-
truncated_matches =
903-
case Code.ensure_compiled(AlgoraCloud) do
904-
{:module, _} -> AlgoraCloud.truncate_matches(socket.assigns.current_org, matches)
905-
_ -> Enum.take(matches, 3)
906-
end
902+
truncated_matches = Algora.Cloud.truncate_matches(socket.assigns.current_org, matches)
907903

908904
developers =
909905
matches

0 commit comments

Comments
 (0)