Skip to content

Commit fd82edf

Browse files
committed
fix: used CHALLENGE_SERVICE_PRISMA_TIMEOUT instead of PRISMA_TRANSACTION_TIMEOUT_MS
1 parent 21e760d commit fd82edf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/prisma.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const prismaClient = new PrismaClient({
2525
// Allow overriding via environment variables if needed.
2626
transactionOptions: {
2727
maxWait: Number(process.env.PRISMA_TRANSACTION_MAX_WAIT_MS || 10000), // wait up to 10s to start
28-
timeout: Number(process.env.PRISMA_TRANSACTION_TIMEOUT_MS || 10000), // allow up to 30s per transaction
28+
timeout: config.CHALLENGE_SERVICE_PRISMA_TIMEOUT, // allow up to 30s per transaction
2929
},
3030
});
3131

src/common/review-prisma.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const createClient = () =>
1919
],
2020
transactionOptions: {
2121
maxWait: Number(process.env.PRISMA_TRANSACTION_MAX_WAIT_MS || 10000),
22-
timeout: Number(process.env.PRISMA_TRANSACTION_TIMEOUT_MS || 10000),
22+
timeout: config.CHALLENGE_SERVICE_PRISMA_TIMEOUT,
2323
},
2424
});
2525

0 commit comments

Comments
 (0)