Skip to content

Commit 2d4e38a

Browse files
committed
remove ensure_user_is_enabled() from ACK/NACK
1 parent 488842c commit 2d4e38a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

backend/oasst_backend/api/v1/tasks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def tasks_acknowledge(
8787

8888
try:
8989
pr = PromptRepository(db, api_client)
90-
pr.ensure_user_is_enabled()
9190

9291
# here we store the message id in the database for the task
9392
logger.info(f"Frontend acknowledges task {task_id=}, {ack_request=}.")
@@ -116,7 +115,6 @@ def tasks_acknowledge_failure(
116115
logger.info(f"Frontend reports failure to implement task {task_id=}, {nack_request=}.")
117116
api_client = deps.api_auth(api_key, db)
118117
pr = PromptRepository(db, api_client)
119-
pr.ensure_user_is_enabled()
120118
pr.task_repository.acknowledge_task_failure(task_id)
121119
except (KeyError, RuntimeError):
122120
logger.exception("Failed to not acknowledge task.")

0 commit comments

Comments
 (0)