Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Oct 11, 2024
1 parent a767e93 commit f041789
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions playground/server/api/cached.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const test = defineCachedFunction((event) => {
const test = defineCachedFunction((_event) => {
return 'test'
}, {
getKey: () => 'test'
})

export default cachedEventHandler(async () => {
export default cachedEventHandler(async (event) => {
return {
now: Date.now(),
test: test()
test: test(event)
}
}, {
maxAge: 10,
Expand Down
1 change: 0 additions & 1 deletion src/runtime/cache/driver.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ export default defineDriver((driverOpts) => {
path: event?.path,
...options.metadata
}
console.log('options', options)
return driver.setItem(key, value, options)
}
}
Expand Down

0 comments on commit f041789

Please sign in to comment.