Skip to content

Commit

Permalink
fix: condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed May 6, 2019
1 parent 9966f8c commit c9f8761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module.exports = ({
createdAt = Date.now(),
data,
...props
} = cachedResult || (await get({ req, res, ...opts }))
} = isHit ? cachedResult : await get({ req, res, ...opts })

const etag = cachedEtag || getEtag(serialize(data))

Expand Down

0 comments on commit c9f8761

Please sign in to comment.