mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-01 02:39:39 +02:00
monograph: fix existing item condition in update endpoint (#40)
This commit is contained in:
1 parent
bf2e6efeff
commit
8df70c81fc
1 file changed
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user