File tree Expand file tree Collapse file tree 1 file changed +14
-15
lines changed
Service/GroupMembershipManagement/Hosts/WebApi/Services.WebApi Expand file tree Collapse file tree 1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -53,25 +53,24 @@ protected override async Task<NotificationCardResponse> ExecuteCoreAsync(Notific
5353 {
5454 // Unauthorized
5555 response . CardJson = await _thresholdNotificationService . CreateUnauthorizedNotificationCardAsync ( notification ) ;
56+ return response ;
5657 }
5758 }
59+
60+ if ( notification . Status == ThresholdNotificationStatus . Resolved )
61+ {
62+ // Resolved
63+ response . CardJson = await _thresholdNotificationService . CreateResolvedNotificationCardAsync ( notification ) ;
64+ }
65+ else if ( notification . Status == ThresholdNotificationStatus . Expired )
66+ {
67+ // Expired
68+ response . CardJson = _thresholdNotificationService . CreateExpiredNotificationCardAsync ( notification ) ;
69+ }
5870 else
5971 {
60- if ( notification . Status == ThresholdNotificationStatus . Resolved )
61- {
62- // Resolved
63- response . CardJson = await _thresholdNotificationService . CreateResolvedNotificationCardAsync ( notification ) ;
64- }
65- else if ( notification . Status == ThresholdNotificationStatus . Expired )
66- {
67- // Expired
68- response . CardJson = _thresholdNotificationService . CreateExpiredNotificationCardAsync ( notification ) ;
69- }
70- else
71- {
72- // Unresolved
73- response . CardJson = await _thresholdNotificationService . CreateNotificationCardAsync ( notification ) ;
74- }
72+ // Unresolved
73+ response . CardJson = await _thresholdNotificationService . CreateNotificationCardAsync ( notification ) ;
7574 }
7675
7776 return response ;
You can’t perform that action at this time.
0 commit comments