monographs: track view count (#67)

This commit is contained in:
01zulfi
2025-11-06 13:15:23 +05:00
committed by GitHub
parent 55136597aa
commit 294769fd71
4 changed files with 36 additions and 2 deletions

View File

@@ -283,6 +283,7 @@ namespace Notesnook.API.Hubs
SelfDestruct = m.SelfDestruct,
Title = m.Title,
ItemId = m.ItemId ?? m.Id.ToString(),
ViewCount = m.ViewCount
}).ToListAsync();
if (userMonographs.Count > 0 && !await Clients.Caller.SendMonographs(userMonographs).WaitAsync(TimeSpan.FromMinutes(10)))