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