missing rename in api_client

This commit is contained in:
Andreas Köpf
2022-12-30 22:43:04 +01:00
committed by Andreas Köpf
parent 26ae43e945
commit f6ea90187c
+2 -2
View File
@@ -66,8 +66,8 @@ class ApiClient:
) -> protocol_schema.Task:
return self.fetch_task(protocol_schema.TaskRequestType.random, user, collective=collective)
def ack_task(self, task_id: str, post_id: str) -> None:
req = protocol_schema.TaskAck(message_id=post_id)
def ack_task(self, task_id: str, message_id: str) -> None:
req = protocol_schema.TaskAck(message_id=message_id)
return self.post(f"/api/v1/tasks/{task_id}/ack", req.dict())
def nack_task(self, task_id: str, reason: str) -> None: