mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 11:12:44 +00:00
monograph: fix existing item condition in update endpoint (#40)
This commit is contained in:
@@ -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