This commit is contained in:
@@ -223,7 +223,9 @@ namespace AyaNova.Biz
|
||||
try
|
||||
{
|
||||
var body = "";
|
||||
if (ne.ObjectId != 0)
|
||||
//NOTE: if need any other exemptions besides backup status make a separate static function "CanOpen(NotifyEventType)"
|
||||
|
||||
if (ne.ObjectId != 0 || ne.EventType == NotifyEventType.BackupStatus)
|
||||
{
|
||||
body = OpenObjectUrlBuilder(ne.AyaType, ne.ObjectId, ne.EventType) + "\n";
|
||||
}
|
||||
@@ -287,6 +289,13 @@ namespace AyaNova.Biz
|
||||
}
|
||||
ServerUrl = ServerUrl.Trim().TrimEnd('/');
|
||||
|
||||
//HANDLE ITEMS WITHOUT TYPE OR ID
|
||||
if (net == NotifyEventType.BackupStatus)
|
||||
{
|
||||
return $"{ServerUrl}/ops-backup";
|
||||
}
|
||||
|
||||
|
||||
//Might not have a type or id in which case nothing directly to open
|
||||
if (otype == AyaType.NoType || id == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user