Skip to content

Commit

Permalink
Merge pull request #21 from SoftwareBrothers/fix/fix-expires
Browse files Browse the repository at this point in the history
fix: fix expires prop in AWS provider
  • Loading branch information
dziraf authored Feb 23, 2021
2 parents cdc8d87 + 19169aa commit 157cc34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/upload-file/providers/aws-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class AWSProvider extends BaseProvider {
} catch (error) {
throw new Error(ERROR_MESSAGES.NO_AWS_SDK)
}
this.expires = options.expires || DAY_IN_MINUTES
this.expires = options.expires ?? DAY_IN_MINUTES
this.s3 = new AWS_S3(options)
}

Expand Down

0 comments on commit 157cc34

Please sign in to comment.