forked from ddrilling/AsbCloudServer
Фикс обновления сообщения
This commit is contained in:
parent
1b560dd0a2
commit
8a0b588450
@ -92,7 +92,7 @@ public class NotificationService
|
|||||||
if (notification.SentDate == null)
|
if (notification.SentDate == null)
|
||||||
throw new ArgumentInvalidException("Уведомление не может быть прочитано", nameof(isRead));
|
throw new ArgumentInvalidException("Уведомление не может быть прочитано", nameof(isRead));
|
||||||
|
|
||||||
notification.SentDate = DateTime.UtcNow;
|
notification.ReadDate = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
|
|
||||||
await notificationRepository.UpdateAsync(notification,
|
await notificationRepository.UpdateAsync(notification,
|
||||||
|
Loading…
Reference in New Issue
Block a user