mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 11:12:44 +00:00
monographs: fix view count setting to 0 when updating (#68)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user