From 91d4e05dcd556b50c2d1628a777928dbe0245d2d Mon Sep 17 00:00:00 2001 From: Marc Vilanova <39573146+mvilanova@users.noreply.github.com> Date: Wed, 14 Jul 2021 13:19:01 -0700 Subject: [PATCH] Bugfix/task creator (#1438) * Fixes issue in task notification * Makes JS happy --- src/dispatch/static/dispatch/src/router/config.js | 4 +++- src/dispatch/task/flows.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dispatch/static/dispatch/src/router/config.js b/src/dispatch/static/dispatch/src/router/config.js index f32819ac8237..996447ada30a 100644 --- a/src/dispatch/static/dispatch/src/router/config.js +++ b/src/dispatch/static/dispatch/src/router/config.js @@ -316,7 +316,9 @@ export const protectedRoute = [ name: "RunbookTable", meta: { title: "Runbooks", subMenu: "project", group: "knowledge" }, component: () => - import(/* webpackChunkName: "runbooks-table" */ "@/document/runbook/RunbookTable.vue"), + import( + /* webpackChunkName: "runbooks-table" */ "@/document/runbook/RunbookTable.vue" + ), }, { path: "definitions", diff --git a/src/dispatch/task/flows.py b/src/dispatch/task/flows.py index 1cdea8eb27e8..d866ece272c8 100644 --- a/src/dispatch/task/flows.py +++ b/src/dispatch/task/flows.py @@ -99,7 +99,7 @@ def send_task_notification( notification_text, message_template, notification_type, - creator=creator.individual.email, + task_creator=creator.individual.email, task_assignees=[x.individual.email for x in assignees], task_description=description, task_weblink=weblink,