mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-29 15:31:28 +00:00
Fix Bind migration check
This commit is contained in:
parent
130ab61d4b
commit
807df0c1cc
|
@ -81,7 +81,7 @@ class StorageMutations:
|
|||
@strawberry.mutation(permission_classes=[IsAuthenticated])
|
||||
def migrate_to_binds(self, input: MigrateToBindsInput) -> GenericJobButationReturn:
|
||||
"""Migrate to binds"""
|
||||
if not is_bind_migrated():
|
||||
if is_bind_migrated():
|
||||
return GenericJobButationReturn(
|
||||
success=False, code=409, message="Already migrated to binds"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue