From 2b6ed95f2814432ff95a2b02b6ed6fcdeb13247b Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Wed, 19 Jul 2023 15:06:56 +0530 Subject: [PATCH] fix: issue automation --- apiserver/plane/bgtasks/issue_automation_task.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/plane/bgtasks/issue_automation_task.py b/apiserver/plane/bgtasks/issue_automation_task.py index bb252886366..0e3ead65ddf 100644 --- a/apiserver/plane/bgtasks/issue_automation_task.py +++ b/apiserver/plane/bgtasks/issue_automation_task.py @@ -70,7 +70,7 @@ def archive_old_issues(): [ issue_activity.delay( type="issue.activity.updated", - requested_data=json.dumps({"archived_at": issue.archived_at}), + requested_data=json.dumps({"archived_at": str(issue.archived_at)}), actor_id=str(project.created_by_id), issue_id=issue.id, project_id=project_id, @@ -140,7 +140,7 @@ def close_old_issues(): [ issue_activity.delay( type="issue.activity.updated", - requested_data=json.dumps({"closed_to": issue.state_id}), + requested_data=json.dumps({"closed_to": str(issue.state_id)}), actor_id=str(project.created_by_id), issue_id=issue.id, project_id=project_id,