fix oban
This commit is contained in:
parent
70bcc52c23
commit
dbcd2c5cd9
@ -7,6 +7,7 @@ defmodule Lokal.Accounts do
|
||||
alias Lokal.{Mailer, Repo}
|
||||
alias Lokal.Accounts.{User, UserToken}
|
||||
alias Ecto.{Changeset, Multi}
|
||||
alias Oban.Job
|
||||
|
||||
## Database getters
|
||||
|
||||
|
@ -15,7 +15,9 @@ defmodule Lokal.Application do
|
||||
# Start the PubSub system
|
||||
{Phoenix.PubSub, name: Lokal.PubSub},
|
||||
# Start the Endpoint (http/https)
|
||||
LokalWeb.Endpoint
|
||||
LokalWeb.Endpoint,
|
||||
# Add Oban
|
||||
{Oban, oban_config()}
|
||||
# Start a worker by calling: Lokal.Worker.start_link(arg)
|
||||
# {Lokal.Worker, arg}
|
||||
]
|
||||
@ -39,4 +41,8 @@ defmodule Lokal.Application do
|
||||
LokalWeb.Endpoint.config_change(changed, removed)
|
||||
:ok
|
||||
end
|
||||
|
||||
defp oban_config do
|
||||
Application.fetch_env!(:lokal, Oban)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user