Skip to content

Commit 8088f50

Browse files
committed
Add support for async serializer so it can be used with worker threads
1 parent f390403 commit 8088f50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class RedisStore extends Store {
8383
try {
8484
let data = await this.client.get(key)
8585
if (!data) return cb()
86-
return cb(null, this.serializer.parse(data))
86+
return cb(null, await this.serializer.parse(data))
8787
} catch (err) {
8888
return cb(err)
8989
}

0 commit comments

Comments
 (0)