diff --git a/apps/mappings/helpers.py b/apps/mappings/helpers.py index 63fe5fa8..21bfc2b1 100644 --- a/apps/mappings/helpers.py +++ b/apps/mappings/helpers.py @@ -14,7 +14,7 @@ def schedule_or_delete_fyle_import_tasks(configuration: WorkspaceGeneralSettings if configuration.import_vendors_as_merchants: start_datetime = datetime.now() Schedule.objects.update_or_create(func='apps.mappings.tasks.auto_import_and_map_fyle_fields', args='{}'.format(configuration.workspace_id), defaults={'schedule_type': Schedule.MINUTES, 'minutes': 24 * 60, 'next_run': start_datetime}) - elif not configuration.import_vendors_as_merchants: + else: Schedule.objects.filter(func='apps.mappings.tasks.auto_import_and_map_fyle_fields', args='{}'.format(configuration.workspace_id)).delete() diff --git a/fyle_integrations_imports b/fyle_integrations_imports index 12715149..93ea7740 160000 --- a/fyle_integrations_imports +++ b/fyle_integrations_imports @@ -1 +1 @@ -Subproject commit 12715149ca7bb27f2b2c0c194341a93fcdb89946 +Subproject commit 93ea774070ee6d2c9f89685cb1127068bd19f313