Skip to content

Commit 3c01538

Browse files
committed
fix: parse to int before applying timeout
1 parent 16c085e commit 3c01538

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/shared/member-prisma/member-prisma.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export class MemberPrismaService
99
constructor() {
1010
super({
1111
transactionOptions: {
12-
timeout: process.env.IDENTITY_SERVICE_PRISMA_TIMEOUT || 10000,
12+
timeout: process.env.IDENTITY_SERVICE_PRISMA_TIMEOUT
13+
? parseInt(process.env.IDENTITY_SERVICE_PRISMA_TIMEOUT, 10)
14+
: 10000,
1315
},
1416
});
1517
}

0 commit comments

Comments
 (0)