Skip to content

Commit d2f9a46

Browse files
committed
fix: s/dedup_by/uniq_by
1 parent 532c41b commit d2f9a46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/algora_web/live/org/job_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ defmodule AlgoraWeb.Org.JobLive do
11351135

11361136
contributions
11371137
|> Enum.map(fn c -> {c.repository.user, groups[c.repository.user]} end)
1138-
|> Enum.dedup_by(fn {owner, _} -> owner end)
1138+
|> Enum.uniq_by(fn {owner, _} -> owner.id end)
11391139
end
11401140

11411141
defp total_stars(contributions) do

lib/algora_web/live/user/profile_live.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ defmodule AlgoraWeb.User.ProfileLive do
334334

335335
contributions
336336
|> Enum.map(fn c -> {c.repository.user, groups[c.repository.user]} end)
337-
|> Enum.dedup_by(fn {owner, _} -> owner end)
337+
|> Enum.uniq_by(fn {owner, _} -> owner.id end)
338338
end
339339

340340
defp total_stars(contributions) do

0 commit comments

Comments
 (0)