forked from SelfPrivacy/selfprivacy-rest-api
Fix job deletion
parent
97acae189f
commit
9489180363
|
@ -27,4 +27,4 @@ async def get_token_header(
|
||||||
|
|
||||||
def get_api_version() -> str:
|
def get_api_version() -> str:
|
||||||
"""Get API version"""
|
"""Get API version"""
|
||||||
return "2.0.1"
|
return "2.0.2"
|
||||||
|
|
|
@ -14,7 +14,7 @@ class JobMutations:
|
||||||
@strawberry.mutation(permission_classes=[IsAuthenticated])
|
@strawberry.mutation(permission_classes=[IsAuthenticated])
|
||||||
def remove_job(self, job_id: str) -> GenericMutationReturn:
|
def remove_job(self, job_id: str) -> GenericMutationReturn:
|
||||||
"""Remove a job from the queue"""
|
"""Remove a job from the queue"""
|
||||||
result = Jobs().remove_by_uid(job_id)
|
result = Jobs.get_instance().remove_by_uid(job_id)
|
||||||
if result:
|
if result:
|
||||||
return GenericMutationReturn(
|
return GenericMutationReturn(
|
||||||
success=True,
|
success=True,
|
||||||
|
|
Loading…
Reference in New Issue