From 807df0c1cc02669dbadba7fafc0851d5142693d4 Mon Sep 17 00:00:00 2001 From: inexcode Date: Fri, 19 Aug 2022 05:48:26 +0400 Subject: [PATCH] Fix Bind migration check --- selfprivacy_api/graphql/mutations/storage_mutations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfprivacy_api/graphql/mutations/storage_mutations.py b/selfprivacy_api/graphql/mutations/storage_mutations.py index 3c2955c..1b6d74e 100644 --- a/selfprivacy_api/graphql/mutations/storage_mutations.py +++ b/selfprivacy_api/graphql/mutations/storage_mutations.py @@ -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" )