mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-09-30 18:29:36 +02:00
inbox: fix expiry date validation check (#97)
This commit is contained in:
1 parent
580524b855
commit
82a1152f9f
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user