fix: insert_all/1 not insert_all!/1

This commit is contained in:
Zach Daniel 2023-05-01 11:00:17 -04:00
parent 72c294bfbe
commit cc5e0e01f3
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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