Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ workflows:
branches:
only:
- develop
- pm-2539

# Production builds are exectuted only on tagged commits to the
# master branch.
Expand Down
11 changes: 8 additions & 3 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ SERVICEACC02_CID="devadmin1"
SERVICEACC02_SECRET="devadmin1"
SERVICEACC02_UID="100000027"

# Note: Registration default password is no longer configurable; for social/SSO
# registrations without a provided password, a unique 16-character random
# password is generated at registration time.
# Note: Registration default password is no longer configurable; for social/SSO
# registrations without a provided password, a unique 16-character random
# password is generated at registration time.


# Prisma configuration

IDENTITY_SERVICE_PRISMA_TIMEOUT=10000
10 changes: 10 additions & 0 deletions src/shared/member-prisma/member-prisma.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ export class MemberPrismaService
extends MemberPrismaClient
implements OnModuleInit, OnModuleDestroy
{
constructor() {
super({
transactionOptions: {
timeout: process.env.IDENTITY_SERVICE_PRISMA_TIMEOUT
? parseInt(process.env.IDENTITY_SERVICE_PRISMA_TIMEOUT, 10)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Consider validating the environment variable process.env.IDENTITY_SERVICE_PRISMA_TIMEOUT before parsing it with parseInt. If the value is not a valid number, parseInt will return NaN, which could lead to unexpected behavior. You might want to add a check to ensure the parsed value is a valid number.

: 10000,
},
});
}

async onModuleInit() {
await this.$connect();
}
Expand Down