Notify: name removed
This commit is contained in:
parent
303bc66028
commit
39bac7cc64
@ -14,8 +14,7 @@ message NotifyItem {
|
||||
}
|
||||
|
||||
message NotifyActionItem {
|
||||
string ID = 1;
|
||||
string Name = 2;
|
||||
string ID = 1;
|
||||
}
|
||||
|
||||
message Recipient {
|
||||
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user