diff --git a/server/api/admin/clouddrive/stats.get.ts b/server/api/admin/clouddrive/stats.get.ts index 1d2bbcc..9ad5f5e 100644 --- a/server/api/admin/clouddrive/stats.get.ts +++ b/server/api/admin/clouddrive/stats.get.ts @@ -1,6 +1,4 @@ -import { PrismaClient } from '@prisma/client' - -const prisma = new PrismaClient() +import prisma from '~/lib/prisma' export default defineEventHandler(async (event) => { // 验证用户