Skip to content

Commit

Permalink
chore: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ruioliveira02 committed Nov 4, 2024
1 parent 8d74a63 commit 308253b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions lib/safira_web/live/app/waiting_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ defmodule SafiraWeb.App.WaitingLive.Index do

alias SafiraWeb.Helpers

@impl true
def render(assigns) do
~H"""
<div>
Expand All @@ -12,6 +13,7 @@ defmodule SafiraWeb.App.WaitingLive.Index do
"""
end

@impl true
def mount(_params, _session, socket) do
start_time = Helpers.get_start_time!()

Expand Down
2 changes: 0 additions & 2 deletions lib/safira_web/live/auth/user_login_live.ex
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
defmodule SafiraWeb.UserLoginLive do
use SafiraWeb, :live_view

alias Safira.Constants

def render(assigns) do
~H"""
<div class="mx-auto max-w-sm">
Expand Down
1 change: 1 addition & 0 deletions lib/safira_web/live/backoffice/event_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ defmodule SafiraWeb.Backoffice.EventLive.Index do

alias SafiraWeb.Helpers

@impl true
def mount(_params, _session, socket) do
registrations_open = Helpers.registrations_open?()
start_time = Helpers.get_start_time!() |> parse_date()
Expand Down
2 changes: 1 addition & 1 deletion lib/safira_web/plugs/event_roles.ex
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
defmodule SafiraWeb.EventRoles do
@moduledoc false
alias Phoenix.Router.NoRouteError
use SafiraWeb, :verified_routes

import Plug.Conn
import Phoenix.Controller

alias Safira.Constants

alias SafiraWeb.Helpers

@doc """
Expand Down
2 changes: 1 addition & 1 deletion lib/safira_web/plugs/user_roles.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ defmodule SafiraWeb.UserRoles do
:error,
"You haven't assigned a credential to your account. You need one to participate in SEI"
)
|> redirect(to: ~p"/app/scanner")
|> redirect(to: ~p"/app/") #TODO: Add proper route when implemented
|> halt()
end
end
Expand Down
4 changes: 2 additions & 2 deletions priv/repo/seeds/constants.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ defmodule Safira.Repo.Seeds.Constants do
alias Safira.Constants

def run do
Constants.set("REGISTRATIONS_OPEN", "true")
Constants.set("START_TIME", "2024-09-29T17:57:00Z")
Constants.set("registrations_open", "true")
Constants.set("start_time", "2024-09-29T17:57:00Z")
end
end

Expand Down

0 comments on commit 308253b

Please sign in to comment.