File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ workflows:
6464 branches :
6565 only :
6666 - develop
67+ - pm-2539
6768
6869 # Production builds are exectuted only on tagged commits to the
6970 # master branch.
Original file line number Diff line number Diff line change @@ -20,7 +20,14 @@ export class MembersLookupService {
2020 return ;
2121 }
2222 // Create a dedicated Prisma client targeting the members DB
23- this . client = new PrismaClient ( { datasources : { db : { url } } } ) ;
23+ this . client = new PrismaClient ( {
24+ transactionOptions : {
25+ timeout : process . env . BA_SERVICE_PRISMA_TIMEOUT
26+ ? parseInt ( process . env . BA_SERVICE_PRISMA_TIMEOUT , 10 )
27+ : 10000 ,
28+ } ,
29+ datasources : { db : { url } }
30+ } ) ;
2431 this . initialized = true ;
2532 }
2633
Original file line number Diff line number Diff line change @@ -3,6 +3,16 @@ import { PrismaClient } from "@prisma/client";
33
44@Injectable ( )
55export class PrismaService extends PrismaClient implements OnModuleInit {
6+ constructor ( ) {
7+ super ( {
8+ transactionOptions : {
9+ timeout : process . env . BA_SERVICE_PRISMA_TIMEOUT
10+ ? parseInt ( process . env . BA_SERVICE_PRISMA_TIMEOUT , 10 )
11+ : 10000 ,
12+ } ,
13+ } ) ;
14+ }
15+
616 async onModuleInit ( ) {
717 await this . $connect ( ) ;
818 }
You can’t perform that action at this time.
0 commit comments