fix: Do not touch updatedAt timestamp on Attachment access

This commit is contained in:
Tom Moor
2024-08-11 08:51:12 -04:00
parent d28e23dd8e
commit 949d93bbfd

View File

@@ -163,9 +163,14 @@ const handleAttachmentsRedirect = async (
throw AuthorizationError();
}
await attachment.update({
lastAccessedAt: new Date(),
});
await attachment.update(
{
lastAccessedAt: new Date(),
},
{
silent: true,
}
);
if (attachment.isPrivate) {
ctx.set(