Skip to content

Commit 3bcfba7

Browse files
authored
Release (#104)
2 parents 38afc8b + 7f04d24 commit 3bcfba7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nitric/api/queues.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ async def send(
155155
task = Task()
156156

157157
if isinstance(task, dict):
158-
# TODO: handle tasks that are just a payload
158+
# Handle if its just a payload
159+
if task.get("payload") is None:
160+
task = {"payload": task}
159161
task = Task(**task)
160162

161163
try:

0 commit comments

Comments
 (0)