Fix Bind migration check

This commit is contained in:
inexcode 2022-08-19 05:48:26 +04:00
parent 130ab61d4b
commit 807df0c1cc

View file

@ -81,7 +81,7 @@ class StorageMutations:
@strawberry.mutation(permission_classes=[IsAuthenticated]) @strawberry.mutation(permission_classes=[IsAuthenticated])
def migrate_to_binds(self, input: MigrateToBindsInput) -> GenericJobButationReturn: def migrate_to_binds(self, input: MigrateToBindsInput) -> GenericJobButationReturn:
"""Migrate to binds""" """Migrate to binds"""
if not is_bind_migrated(): if is_bind_migrated():
return GenericJobButationReturn( return GenericJobButationReturn(
success=False, code=409, message="Already migrated to binds" success=False, code=409, message="Already migrated to binds"
) )