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
5 changes: 5 additions & 0 deletions src/shared/modules/global/prisma.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ export class PrismaService

constructor(private readonly prismaErrorService?: PrismaErrorService) {
super({
transactionOptions: {
timeout: process.env.GROUPS_SERVICE_PRISMA_TIMEOUT

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 GROUPS_SERVICE_PRISMA_TIMEOUT before parsing it. If the variable 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 and falls within an acceptable range.

? parseInt(process.env.GROUPS_SERVICE_PRISMA_TIMEOUT, 10)
: 10000,
},
log: [
{ level: 'query', emit: 'event' },
{ level: 'info', emit: 'event' },
Expand Down