mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
Additional edit alert updates (#652)
This commit is contained in:
@@ -182,12 +182,12 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
|
||||
if (alertInfo.AlertType == Contracts.AlertType.SqlServerEvent)
|
||||
{
|
||||
if (this.alertInfo.MessageId.HasValue)
|
||||
if (this.alertInfo.MessageId.HasValue && this.alertInfo.MessageId > 0)
|
||||
{
|
||||
alert.Severity = 0;
|
||||
alert.MessageID = this.alertInfo.MessageId.Value;
|
||||
}
|
||||
else if (this.alertInfo.Severity.HasValue)
|
||||
else if (this.alertInfo.Severity.HasValue && this.alertInfo.Severity > 0)
|
||||
{
|
||||
alert.Severity = this.alertInfo.Severity.Value;
|
||||
alert.MessageID = 0;
|
||||
|
||||
Reference in New Issue
Block a user