Skip to content

Commit

Permalink
Remove lookup before upsert for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Oct 16, 2024
1 parent 89d3cf8 commit ce00987
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/backend/src/tasks/hex.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ fn extract_release_interfaces_from_db(
id: Int,
release: hexpm.Release,
) {
use _ <- result.try_recover(queries.lookup_release(state.db, id, release))
use r <- result.try(queries.upsert_release(state.db, id, release, None, None))
r.rows
|> list.first()
Expand Down

0 comments on commit ce00987

Please sign in to comment.