fix: 解决Activity保存因为参数出错问题

This commit is contained in:
jiangweidong
2023-02-24 17:59:32 +08:00
parent 9895ae73bc
commit 824e4c9e81
8 changed files with 25 additions and 19 deletions

View File

@@ -8,7 +8,7 @@ from orgs.utils import tmp_to_org, tmp_to_root_org
logger = get_logger(__file__)
def task_activity_callback(self, pid, trigger, tp):
def task_activity_callback(self, pid, trigger, tp, *args, **kwargs):
model = AutomationTypes.get_type_model(tp)
with tmp_to_root_org():
instance = get_object_or_none(model, pk=pid)