File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export const AppConfig = {
1919 inviteEmailSubject : process . env . INVITE_EMAIL_SUBJECT || 'You are invited to Topcoder' ,
2020 inviteEmailSectionTitle : process . env . INVITE_EMAIL_SECTION_TITLE || 'Project Invitation' ,
2121 SSO_REFCODES : process . env . SSO_REFCODES || '[]' ,
22+ PROJECT_SERVICE_PRISMA_TIMEOUT : process . env . PROJECT_SERVICE_PRISMA_TIMEOUT ? parseInt ( process . env . PROJECT_SERVICE_PRISMA_TIMEOUT ) : 10000
2223}
2324
2425export const Auth0Config = {
Original file line number Diff line number Diff line change 11// prisma.service.ts
22import { Injectable , OnModuleInit , OnModuleDestroy } from '@nestjs/common' ;
33import { PrismaClient } from '@prisma/client' ;
4+ import { AppConfig } from 'config/config' ;
45
56@Injectable ( )
67export class PrismaService
@@ -9,6 +10,9 @@ export class PrismaService
910{
1011 constructor ( ) {
1112 super ( {
13+ transactionOptions : {
14+ timeout : AppConfig . PROJECT_SERVICE_PRISMA_TIMEOUT ,
15+ } ,
1216 log : [
1317 { level : 'query' , emit : 'event' } ,
1418 { level : 'info' , emit : 'event' } ,
You can’t perform that action at this time.
0 commit comments