Skip to content

Commit

Permalink
fix: another syntax issue with drain_queue/2
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Aug 4, 2023
1 parent 6bd0058 commit ee4827c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/test.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ defmodule AshOban.Test do
|> Enum.map(& &1.queue)
|> Enum.uniq()
|> Enum.reduce(%{}, fn queue, acc ->
queue
|> Oban.drain_queue(queue: queue)
[queue: queue]
|> Oban.drain_queue()
|> Map.merge(acc, fn _key, left, right ->
left + right
end)
Expand Down

0 comments on commit ee4827c

Please sign in to comment.