Skip to content

Commit

Permalink
fix(core): wait deserialize promise
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 28, 2022
1 parent 27b1d1e commit b5f3f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Keyv extends EventEmitter {
for await (const [key, raw] of typeof iterator === 'function'
? iterator(this.namespace)
: iterator) {
const data = typeof raw === 'string' ? this.deserialize(raw) : raw
const data = typeof raw === 'string' ? await this.deserialize(raw) : raw
if (this.namespace && !key.includes(this.namespace)) {
continue
}
Expand Down

0 comments on commit b5f3f1c

Please sign in to comment.