Skip to content

Commit a4d8697

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

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/algora/cloud.ex

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

12+
def truncate_matches(org, matches) do
13+
call(AlgoraCloud, :truncate_matches, [org, matches])
14+
end
15+
1216
def get_contribution_score(tech_stack, user, contributions_map) do
1317
call(AlgoraCloud, :get_contribution_score, [tech_stack, user, contributions_map])
1418
end

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)