Skip to content

Commit

Permalink
@uppy/companion: fix Redis key default TTL (#4607)
Browse files Browse the repository at this point in the history
* FIX: redis deafult expeiry

* removed commented code

* fix indentation error
  • Loading branch information
subha1206 authored Aug 6, 2023
1 parent d6e1013 commit 39bc7ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@uppy/companion/src/server/Uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ class Uploader {
// https://github.com/transloadit/uppy/issues/3748
const keyExpirySec = 60 * 60 * 24
const redisKey = `${Uploader.STORAGE_PREFIX}:${this.token}`
this.storage.set(redisKey, jsonStringify(state), 'EX', keyExpirySec)
this.storage.set(redisKey, jsonStringify(state), {
EX: keyExpirySec,
})
}

throttledEmitProgress = throttle((dataToEmit) => {
Expand Down

0 comments on commit 39bc7ed

Please sign in to comment.