fix: Ensure signed urls on shared documents are valid longer than 60s

This commit is contained in:
Tom Moor committed 2024-12-19 09:43:49 +09:00
1 parent 1e5d281870
commit 77e8dbefd6
1 file changed
+2 -1
+2 -1
View File
@@ -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";
@@ -31,7 +32,7 @@ async function presentDocument(
document,
options.isPublic
? {
signedUrls: 60,
signedUrls: Hour.seconds,
teamId: document.teamId,
removeMarks: ["comment"],
internalUrlBase: `/s/${options.shareId}`,