Skip to content

Commit

Permalink
fix: Do not wrap paused and delete Cron options into events (#15)
Browse files Browse the repository at this point in the history
It breaks the application boot by throwing an irrelevant error.
  • Loading branch information
smt116 authored Jan 9, 2024
1 parent 2667527 commit bfacb45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ash_oban.ex
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,10 @@ defmodule AshOban do
opts =
case trigger.state do
:paused ->
[events: [paused: true]]
[paused: true]

:deleted ->
[events: [delete: true]]
[delete: true]

_ ->
[]
Expand Down

0 comments on commit bfacb45

Please sign in to comment.