From 94915aaaa0dfbc5a8bb03d0cef4e0f4d3ede2366 Mon Sep 17 00:00:00 2001 From: labhvam5 Date: Mon, 27 Nov 2023 14:57:15 +0530 Subject: [PATCH] bug fix for schedule not deleting --- apps/workspaces/apis/import_settings/triggers.py | 2 ++ 1 file changed, 2 insertions(+) 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)