Skip to content

Commit

Permalink
Add support for async serializer so it can be used with worker threads
Browse files Browse the repository at this point in the history
  • Loading branch information
ozcanovunc committed Apr 18, 2023
1 parent f390403 commit 8088f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class RedisStore extends Store {
try {
let data = await this.client.get(key)
if (!data) return cb()
return cb(null, this.serializer.parse(data))
return cb(null, await this.serializer.parse(data))
} catch (err) {
return cb(err)
}
Expand Down

0 comments on commit 8088f50

Please sign in to comment.