Skip to content

Commit

Permalink
Fix broken CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodrigues10 committed Jul 26, 2023
1 parent 6538cde commit 43a7b2c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/atomic/activities.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ defmodule Atomic.Activities do
"""
def get_activity!(id, preloads \\ []) do
Activity
|> where([a], a.id == ^id)
|> Repo.one()
Repo.get!(Activity, id)
|> Repo.preload(preloads)
end

Expand Down

0 comments on commit 43a7b2c

Please sign in to comment.