mirror of
https://github.com/ash-project/ash_oban.git
synced 2024-09-19 12:53:34 +12:00
fix: insert_all/1
not insert_all!/1
This commit is contained in:
parent
72c294bfbe
commit
cc5e0e01f3
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ oban do
|
|||
triggers do
|
||||
api YourApi
|
||||
|
||||
# add a triggere called `:process`
|
||||
# add a trigger called `:process`
|
||||
trigger :process do
|
||||
# this trigger calls the `process` action
|
||||
action :process
|
||||
|
|
|
@ -86,7 +86,7 @@ defmodule AshOban.Transformers.DefineSchedulers do
|
|||
def insert(stream) do
|
||||
stream
|
||||
|> Stream.chunk_every(100)
|
||||
|> Stream.each(&Oban.insert_all!/1)
|
||||
|> Stream.each(&Oban.insert_all/1)
|
||||
|> Stream.run()
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue