We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbfe7f6 commit d1bd19dCopy full SHA for d1bd19d
lib/algora/settings/settings.ex
@@ -70,16 +70,20 @@ defmodule Algora.Settings do
70
end
71
72
def get_org_matches(org) do
73
- case get("org_matches:#{org.handle}") do
74
- %{"matches" => matches} when is_list(matches) ->
75
- load_matches(matches)
76
-
77
- _ ->
78
- if tech_stack = List.first(org.tech_stack) do
79
- get_tech_matches(tech_stack)
80
- else
81
- []
82
- end
+ if get_user_profile(org.handle) do
+ []
+ else
+ case get("org_matches:#{org.handle}") do
+ %{"matches" => matches} when is_list(matches) ->
+ load_matches(matches)
+
+ _ ->
+ if tech_stack = List.first(org.tech_stack) do
+ get_tech_matches(tech_stack)
83
84
85
+ end
86
87
88
89
0 commit comments