From 82a1152f9fc660efa71d8d1d24695ac0ce9ad1c2 Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Wed, 13 May 2026 09:51:24 +0500 Subject: [PATCH] inbox: fix expiry date validation check (#97) --- Notesnook.API/Controllers/InboxController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Notesnook.API/Controllers/InboxController.cs b/Notesnook.API/Controllers/InboxController.cs index 92d874c..b1c7500 100644 --- a/Notesnook.API/Controllers/InboxController.cs +++ b/Notesnook.API/Controllers/InboxController.cs @@ -72,9 +72,9 @@ namespace Notesnook.API.Controllers { return BadRequest(new { error = "Api key name is required." }); } - if (request.ExpiryDate <= -1) + if (request.ExpiryDate == null) { - return BadRequest(new { error = "Valid expiry date is required." }); + return BadRequest(new { error = "Expiry date is required." }); } var count = await inboxApiKeysRepository.CountAsync(t => t.UserId == userId);