Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
8 changes: 8 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,14 @@ export class MemberPrismaService
extends MemberPrismaClient
implements OnModuleInit, OnModuleDestroy
{
constructor() {
super({
transactionOptions: {
timeout: process.env.IDENTITY_SERVICE_PRISMA_TIMEOUT || 10000,

Choose a reason for hiding this comment

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

[❗❗ correctness]
Using process.env.IDENTITY_SERVICE_PRISMA_TIMEOUT directly in the constructor might lead to issues if the environment variable is not set or is set to a non-numeric value. Consider validating the environment variable and providing a fallback mechanism to ensure the timeout is always a valid number.

},
});
}

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