Notify: name removed

This commit is contained in:
pavelbannov 2019-08-22 18:59:49 +03:00
parent 303bc66028
commit 39bac7cc64
4 changed files with 5 additions and 6 deletions

View File

@ -14,8 +14,7 @@ message NotifyItem {
}
message NotifyActionItem {
string ID = 1;
string Name = 2;
string ID = 1;
}
message Recipient {

View File

@ -529,7 +529,7 @@ namespace ASC.Notify.Engine
pattern = apProvider.GetPattern(request.NotifyAction, senderName);
}
request.Patterns[i] = pattern ?? throw new NotifyException(string.Format("For action \"{0}\" by sender \"{1}\" no one patterns getted.", request.NotifyAction.Name, senderName));
request.Patterns[i] = pattern ?? throw new NotifyException(string.Format("For action \"{0}\" by sender \"{1}\" no one patterns getted.", request.NotifyAction.ID, senderName));
}
}
}

View File

@ -49,12 +49,12 @@ namespace ASC.Notify.Model
public static implicit operator NotifyActionItem(NotifyAction cache)
{
return new NotifyActionItem() { ID = cache.ID, Name = cache.Name };
return new NotifyActionItem() { ID = cache.ID };
}
public static explicit operator NotifyAction(NotifyActionItem cache)
{
return new NotifyAction(cache.ID, cache.Name);
return new NotifyAction(cache.ID);
}
public override bool Equals(object obj)

View File

@ -1133,7 +1133,7 @@ namespace ASC.Web.Studio.Core.Notify
if (action == null) continue;
log.InfoFormat(@"Send letter personal '{1}' to {0} culture {2}. tenant id: {3} user culture {4} create on {5} now date {6}",
user.Email, action.Name, culture, tenant.TenantId, user.GetCulture(), user.CreateDate, scheduleDate.Date);
user.Email, action.ID, culture, tenant.TenantId, user.GetCulture(), user.CreateDate, scheduleDate.Date);
sendCount++;