From 8df70c81fc574bf3b0bf27bf357531e5abbff34f Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Mon, 4 Aug 2025 13:00:55 +0500 Subject: [PATCH] monograph: fix existing item condition in update endpoint (#40) --- Notesnook.API/Controllers/MonographsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Notesnook.API/Controllers/MonographsController.cs b/Notesnook.API/Controllers/MonographsController.cs index 77a27a1..6abce0d 100644 --- a/Notesnook.API/Controllers/MonographsController.cs +++ b/Notesnook.API/Controllers/MonographsController.cs @@ -151,7 +151,7 @@ namespace Notesnook.API.Controllers if (userId == null) return Unauthorized(); var existingMonograph = await FindMonographAsync(userId, monograph); - if (existingMonograph != null || existingMonograph.Deleted) + if (existingMonograph == null || existingMonograph.Deleted) { return NotFound(); }