mirror of
https://github.com/outline/outline.git
synced 2025-12-30 15:30:12 -06:00
fix: Do not touch updatedAt timestamp on Attachment access
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user