diff --git a/apps/workspaces/apis/import_settings/triggers.py b/apps/workspaces/apis/import_settings/triggers.py index 2fffb89e..b886695f 100644 --- a/apps/workspaces/apis/import_settings/triggers.py +++ b/apps/workspaces/apis/import_settings/triggers.py @@ -11,6 +11,7 @@ schedule_fyle_attributes_creation, schedule_tax_groups_creation, ) +from apps.mappings.schedules import schedule_or_delete_fyle_import_tasks as new_schedule_or_delete_fyle_import_tasks from apps.workspaces.models import WorkspaceGeneralSettings @@ -132,4 +133,5 @@ def post_save_mapping_settings(self, workspace_general_settings_instance: Worksp self.__update_expense_group_settings_for_departments() + new_schedule_or_delete_fyle_import_tasks(workspace_general_settings_instance, None) schedule_or_delete_fyle_import_tasks(workspace_general_settings_instance)