Skip to content

Commit

Permalink
Fixed get available tickets query
Browse files Browse the repository at this point in the history
  • Loading branch information
MICHAELMUNAVU83 committed Oct 24, 2023
1 parent 6b48499 commit 3713e2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/elixir_conf_africa/events.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ defmodule ElixirConfAfrica.Events do
query =
from t in TicketType,
join: e in Event,
on: t.event_id == e.id,
where: e.name == ^"ElixirConf Africa 2024",
on: t.event_id == e.id and e.name == "ElixirConf Africa 2024",
select: sum(t.number)

Repo.one(query)
Expand Down

0 comments on commit 3713e2c

Please sign in to comment.