Skip to content

Commit

Permalink
remove ensure_user_is_enabled() from ACK/NACK
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaskoepf committed Jan 19, 2023
1 parent 488842c commit 2d4e38a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/oasst_backend/api/v1/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def tasks_acknowledge(

try:
pr = PromptRepository(db, api_client)
pr.ensure_user_is_enabled()

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

0 comments on commit 2d4e38a

Please sign in to comment.