Skip to content

Commit 1cbfc6e

Browse files
committed
remove accelerate
1 parent d14bca7 commit 1cbfc6e

4 files changed

Lines changed: 1 addition & 12 deletions

File tree

src/handler/analysis/coreAnalysis/arrayAndAverageTeams.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -479,10 +479,6 @@ const config: AnalysisFunctionConfig<typeof argsSchema, typeof returnSchema> = {
479479

480480
// Main query
481481
const tmd = await prismaClient.teamMatchData.findMany({
482-
cacheStrategy: {
483-
swr: swrConstant,
484-
ttl: ttlConstant,
485-
},
486482
where: tmdFilter,
487483
select: {
488484
tournamentKey: true,

src/handler/analysis/coreAnalysis/averageManyFast.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ const config: AnalysisFunctionConfig<typeof argsSchema, z.ZodType> = {
8484
: {};
8585

8686
const tmd = await prismaClient.teamMatchData.findMany({
87-
cacheStrategy: { swr: swrConstant, ttl: ttlConstant },
8887
where: tmdWhere,
8988
select: {
9089
teamNumber: true,

src/handler/manager/getMatches.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,6 @@ export const getMatches = async (
106106
}
107107

108108
const rawData = await prismaClient.teamMatchData.findMany({
109-
cacheStrategy: {
110-
swr: swrConstant,
111-
ttl: ttlConstant,
112-
},
113109
where: {
114110
tournamentKey: params.data.tournamentKey,
115111
},

src/prismaClient.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { PrismaClient } from "@prisma/client";
2-
import { withAccelerate } from "@prisma/extension-accelerate";
3-
4-
const prisma = new PrismaClient().$extends(withAccelerate());
52

3+
const prisma = new PrismaClient();
64
export default prisma;

0 commit comments

Comments
 (0)