Remove prisma accelerate

This commit is contained in:
2023-12-14 17:54:13 +01:00
parent 64eb1dc69d
commit fc6ad4d1ee
9 changed files with 4 additions and 27 deletions

View File

@@ -3,9 +3,6 @@ import type { CategoryType } from '@prisma/client'
export default defineEventHandler(async (event) => {
const { type } = getQuery<{ type: CategoryType }>(event)
return await usePrisma().category.findMany({
cacheStrategy: {
ttl: 60 * 3,
},
where: {
type,
},