fix duplicate ack_task api-calls

This commit is contained in:
Andreas Köpf
2022-12-22 18:58:19 +01:00
parent 8a48722e72
commit 3a96cb062b
2 changed files with 1 additions and 9 deletions
+1 -1
View File
@@ -169,8 +169,8 @@ def acknowledge_task(
pr = PromptRepository(db, api_client, user=None)
# here we store the post id in the database for the task
pr.bind_frontend_post_id(task_id=task_id, post_id=ack_request.post_id)
logger.info(f"Frontend acknowledges task {task_id=}, {ack_request=}.")
pr.bind_frontend_post_id(task_id=task_id, post_id=ack_request.post_id)
except Exception:
logger.exception("Failed to acknowledge task.")