Skip to content

Commit

Permalink
fix client cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MillerRen committed Oct 28, 2019
1 parent a90784e commit 96ecf39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/oss.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class OSSService {
}

getClient () {
if (this.client && dayjs(this.expiration).isAfter(dayjs())) {
if (this.client && dayjs(this.client.options.expiration).isAfter(dayjs())) {
return Promise.resolve(this.client)
}
return this.getConfig()
Expand Down

0 comments on commit 96ecf39

Please sign in to comment.