From a5779a145100d1bf1f8407b2fd788e1b1c0dd27e Mon Sep 17 00:00:00 2001 From: Petar Hristov Date: Wed, 3 Mar 2021 16:04:07 +0100 Subject: [PATCH] Update: Added Support for ContactChange (coscine/issues#1294) --- .config/dotnet-tools.json | 18 ------------------ .gitignore | 3 +++ .../Controller/NotificationBusController.cs | 5 ++++- 3 files changed, 7 insertions(+), 19 deletions(-) delete mode 100644 .config/dotnet-tools.json diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json deleted file mode 100644 index 87f76e2..0000000 --- a/.config/dotnet-tools.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "version": 1, - "isRoot": true, - "tools": { - "gitversion.tool": { - "version": "5.6.6", - "commands": [ - "dotnet-gitversion" - ] - }, - "dotnet-version-cli": { - "version": "2.1.1", - "commands": [ - "dotnet-version" - ] - } - } -} \ No newline at end of file diff --git a/.gitignore b/.gitignore index d2df1da..b8cba6c 100644 --- a/.gitignore +++ b/.gitignore @@ -268,3 +268,6 @@ __pycache__/ tools/* !tools/packages.config dist/ + +# Dotnet Tool Manifest +.config/* \ No newline at end of file diff --git a/src/NotificationBus/Controller/NotificationBusController.cs b/src/NotificationBus/Controller/NotificationBusController.cs index 70853c4..6cb2400 100644 --- a/src/NotificationBus/Controller/NotificationBusController.cs +++ b/src/NotificationBus/Controller/NotificationBusController.cs @@ -123,7 +123,10 @@ namespace Coscine.Api.NotificationBus.Controllers dict = ((JObject)(requestArgs["placeholder"])).ToObject>(); } dict.Add("_targetUserName", user.DisplayName); - dict.Add("_projectName", project.DisplayName); + if (project != null) + { + dict.Add("_projectName", project.DisplayName); + } foreach (JProperty property in template.Properties()) { -- GitLab