From 7a8873db32ecd1daebc53e6b13ac7e18e665957e Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Fri, 7 Nov 2025 09:59:52 +0500 Subject: [PATCH] monographs: fix view count setting to 0 when updating (#68) --- Notesnook.API/Controllers/MonographsController.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Notesnook.API/Controllers/MonographsController.cs b/Notesnook.API/Controllers/MonographsController.cs index d74c943..7e76729 100644 --- a/Notesnook.API/Controllers/MonographsController.cs +++ b/Notesnook.API/Controllers/MonographsController.cs @@ -130,8 +130,7 @@ namespace Notesnook.API.Controllers return Ok(new { id = monograph.ItemId, - datePublished = monograph.DatePublished, - viewCount = monograph.ViewCount + datePublished = monograph.DatePublished }); } catch (Exception e) @@ -173,7 +172,6 @@ namespace Notesnook.API.Controllers .Set(m => m.SelfDestruct, monograph.SelfDestruct) .Set(m => m.Title, monograph.Title) .Set(m => m.Password, monograph.Password) - .Set(m => m.ViewCount, monograph.ViewCount) ); if (!result.IsAcknowledged) return BadRequest(); @@ -182,8 +180,7 @@ namespace Notesnook.API.Controllers return Ok(new { id = monograph.ItemId, - datePublished = monograph.DatePublished, - viewCount = monograph.ViewCount + datePublished = monograph.DatePublished }); } catch (Exception e)