@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/File.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamkeel/functions-runtime",
3
- "version": "0.395.2",
3
+ "version": "0.395.3",
4
4
  "description": "Internal package used by @teamkeel/sdk",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
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 * 24 });
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._size,
190
+ size: this.size,
191
191
  };
192
192
  }
193
193