diff --git a/src/server/api/question/[id].get.ts b/src/server/api/question/[id].get.ts index 573e6f9..f4dd565 100644 --- a/src/server/api/question/[id].get.ts +++ b/src/server/api/question/[id].get.ts @@ -18,5 +18,5 @@ export default defineCachedEventHandler( } return question }, - { swr: true, staleMaxAge: 3600, maxAge: 3600 }, + { swr: true, staleMaxAge: 3600 }, ) diff --git a/src/server/api/sections.get.ts b/src/server/api/sections.get.ts index c069b42..d313d1b 100644 --- a/src/server/api/sections.get.ts +++ b/src/server/api/sections.get.ts @@ -4,5 +4,5 @@ export default defineCachedEventHandler( async (event) => { return await getSectionsWithoutId(event.context.db) }, - { swr: true, staleMaxAge: 3600, maxAge: 3600 }, + { swr: true, staleMaxAge: 3600 }, )