From d6b0e3a366cbe4d7f649544af97e09ef9e2e754e Mon Sep 17 00:00:00 2001 From: Glax Date: Mon, 16 Dec 2024 20:34:20 +0100 Subject: [PATCH] Notification Date notnull --- API/Schema/Notification.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/API/Schema/Notification.cs b/API/Schema/Notification.cs index ec7bae8..a28aa5c 100644 --- a/API/Schema/Notification.cs +++ b/API/Schema/Notification.cs @@ -15,5 +15,5 @@ public class Notification(string title, string message = "", NotificationUrgency public string Message { get; init; } = message; - public DateTime? Date { get; init; } = date ?? DateTime.UtcNow; + public DateTime Date { get; init; } = date ?? DateTime.UtcNow; } \ No newline at end of file