Skip to content

Commit

Permalink
fix: get correct keys
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Aug 8, 2022
1 parent b71427d commit 37085b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ export default defineNuxtModule<ModuleOptions>({
for (const [key, source] of Object.entries(sources)) {
storage.mount(key, getMountDriver(source))
}
let keys = await storage.getKeys()
let keys = await storage.getKeys('content:source')

// Filter invalid characters & ignore patterns
const invalidKeyCharacters = "'\"?#/".split('')
Expand All @@ -554,7 +554,7 @@ export default defineNuxtModule<ModuleOptions>({
})
await Promise.all(
keys.map(async key => await storage.setItem(
`cache:content:parsed:${key.substring(14)}`,
`cache:content:parsed:${key.substring(15)}`,
await storage.getItem(key)
))
)
Expand Down

0 comments on commit 37085b1

Please sign in to comment.