@teamkeel/functions-runtime 0.395.2 → 0.395.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/File.js +3 -3
package/package.json
CHANGED
package/src/File.js
CHANGED
|
@@ -167,10 +167,10 @@ class File extends InlineFile {
|
|
|
167
167
|
|
|
168
168
|
const command = new GetObjectCommand({
|
|
169
169
|
Bucket: process.env.KEEL_FILES_BUCKET_NAME,
|
|
170
|
-
Key: "files/" + this.key
|
|
170
|
+
Key: "files/" + this.key,
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
const url = await getSignedUrl(s3Client, command, { expiresIn: 60 *
|
|
173
|
+
const url = await getSignedUrl(s3Client, command, { expiresIn: 60 * 60 });
|
|
174
174
|
|
|
175
175
|
return new URL(url);
|
|
176
176
|
} else {
|
|
@@ -187,7 +187,7 @@ class File extends InlineFile {
|
|
|
187
187
|
key: this.key,
|
|
188
188
|
filename: this.filename,
|
|
189
189
|
contentType: this.contentType,
|
|
190
|
-
size: this.
|
|
190
|
+
size: this.size,
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
193
|
|