feat: Record share link last accessed time (#2047)
* chore: Migrations * chore: Add recording of share link views * feat: Add display of share link accessed date in admin * translations * test * translations, admin pagination
This commit is contained in:
@@ -518,6 +518,8 @@ async function loadDocument({ id, shareId, user }) {
|
||||
if (!team.sharing) {
|
||||
throw new AuthorizationError();
|
||||
}
|
||||
|
||||
await share.update({ lastAccessedAt: new Date() });
|
||||
} else {
|
||||
document = await Document.findByPk(id, {
|
||||
userId: user ? user.id : undefined,
|
||||
|
||||
Reference in New Issue
Block a user