Skip to content

Commit

Permalink
fixed slack payload
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Feb 8, 2018
1 parent d5833b9 commit fb3d5f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SearAlertingServiceCore/Actions/SlackAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static bool Execute(string slackUrl, string message, string link)
using (WebClient client = new WebClient())
{
NameValueCollection data = new NameValueCollection();
data["payload"] = String.Format("{ \"text\": \"{0}\r\n\r\n<{1}|Click here> for details!\", \"username\": \"Sear Alert Bot\"}", message, link);
data["payload"] = "{ \"text\": \"" + message + "\r\n\r\n<" + link + "|Click here> for details!\", \"username\": \"Sear Alert Bot\"}";
client.UploadValues(slackUrl, "POST", data);
}

Expand Down
2 changes: 1 addition & 1 deletion SearAlertingServiceCore/SearAlertingServiceCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<Content Include="Alerts\AppTrackerSyncCount.xml">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Alerts\PipedriveSyncErrors.xml">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
Expand Down

0 comments on commit fb3d5f1

Please sign in to comment.