Skip to content

Commit

Permalink
fix: Ensure signed urls on shared documents are valid longer than 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Dec 19, 2024
1 parent 1e5d281 commit 77e8dbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/presenters/document.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Hour } from "@shared/utils/time";
import { traceFunction } from "@server/logging/tracing";
import { Document } from "@server/models";
import { DocumentHelper } from "@server/models/helpers/DocumentHelper";
Expand Down Expand Up @@ -31,7 +32,7 @@ async function presentDocument(
document,
options.isPublic
? {
signedUrls: 60,
signedUrls: Hour.seconds,
teamId: document.teamId,
removeMarks: ["comment"],
internalUrlBase: `/s/${options.shareId}`,
Expand Down

0 comments on commit 77e8dbe

Please sign in to comment.