Skip to content

Commit

Permalink
Release (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyecusch authored May 4, 2023
2 parents 38afc8b + 7f04d24 commit 3bcfba7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nitric/api/queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ async def send(
task = Task()

if isinstance(task, dict):
# TODO: handle tasks that are just a payload
# Handle if its just a payload
if task.get("payload") is None:
task = {"payload": task}
task = Task(**task)

try:
Expand Down

0 comments on commit 3bcfba7

Please sign in to comment.