Fix job deletion

This commit is contained in:
Inex Code 2022-09-09 17:51:41 +03:00
parent 97acae189f
commit 9489180363
2 changed files with 2 additions and 2 deletions

View file

@ -27,4 +27,4 @@ async def get_token_header(
def get_api_version() -> str:
"""Get API version"""
return "2.0.1"
return "2.0.2"

View file

@ -14,7 +14,7 @@ class JobMutations:
@strawberry.mutation(permission_classes=[IsAuthenticated])
def remove_job(self, job_id: str) -> GenericMutationReturn:
"""Remove a job from the queue"""
result = Jobs().remove_by_uid(job_id)
result = Jobs.get_instance().remove_by_uid(job_id)
if result:
return GenericMutationReturn(
success=True,