From 43a7b2ca96a9821c103f32fd64f9871b6dac1f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rio=20Rodrigues?= Date: Wed, 26 Jul 2023 01:00:05 +0100 Subject: [PATCH] Fix broken CI --- lib/atomic/activities.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/atomic/activities.ex b/lib/atomic/activities.ex index db0e747f0..7ad6e2b46 100644 --- a/lib/atomic/activities.ex +++ b/lib/atomic/activities.ex @@ -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