neiam
/apollos_crib
It's Apollo's Crib
public · Issues · Pulls 1 · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
blech.
b5c06fa · gmorell · 2022-10-14 19:31
Files changed
modified
apps/room_sanctum/lib/room_sanctum/configuration.ex
+2
−0
@@ -258,6 +258,8 @@ defmodule RoomSanctum.Configuration do
| 258 | 258 | """ |
| 259 | 259 | def get_vision!(id), do: Repo.get!(Vision, id) |
| 260 | 260 | |
| 261 | + def get_vision(id), do: Repo.get(Vision, id) | |
| 262 | + | |
| 261 | 263 | def get_visions(:query, id) do |
| 262 | 264 | from(v in Vision, where: ^id in v.query_ids) |> Repo.all |
| 263 | 265 | end |
Parents: 8a13f0d