Skip to content

Commit 4426883

Browse files
committed
fix: ensure on_conflict option is applied in insert_all for stargazers
1 parent 4b4abe7 commit 4426883

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/algora/workspace/jobs/import_stargazer.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ defmodule Algora.Workspace.Jobs.ImportStargazer do
2222
user_id: user.id,
2323
repository_id: repo_id
2424
}
25-
end)
25+
end),
26+
on_conflict: :nothing
2627
)
2728

2829
:ok
@@ -42,7 +43,8 @@ defmodule Algora.Workspace.Jobs.ImportStargazer do
4243
user_id: user.id,
4344
repository_id: repo_id
4445
}
45-
end)
46+
end),
47+
on_conflict: :nothing
4648
)
4749

4850
:ok

0 commit comments

Comments
 (0)