Skip to content

Commit 022db29

Browse files
Fixed bug for actionable message viewer group members to be unable to get refreshed card
1 parent 587421b commit 022db29

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

Service/GroupMembershipManagement/Hosts/WebApi/Services.WebApi/NotificationCardHandler.cs

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)