little clean up
This commit is contained in:
parent
6f2d114518
commit
b3485a6dbf
|
@ -23,7 +23,7 @@ def enqueue(args) do
|
||||||
{scheduled_at, args} = Map.pop(args, :expires_at)
|
{scheduled_at, args} = Map.pop(args, :expires_at)
|
||||||
|
|
||||||
args
|
args
|
||||||
|> __MODULE__.new(scheduled_at: scheduled_at)
|
|> new(scheduled_at: scheduled_at)
|
||||||
|> Oban.insert()
|
|> Oban.insert()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue