serialize task command for notification box

This commit is contained in:
Simon
2025-06-05 09:55:21 +07:00
parent 703fd63f44
commit 710b0ddc2d
2 changed files with 2 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ class BaseTask(Task):
message.update({"level": level, "id": task_id})
task_result = TaskManager().get_task(task_id)
if task_result:
command = task_result.get("command", False)
command = task_result.get("command", None)
message.update({"command": command})
key = f"message:{message.get('group')}:{task_id.split('-')[0]}"