Skip to content

Conversation

@hentrymartin
Copy link
Collaborator

What's in this PR?

  • Added timeout for Prisma service

Ticket link - https://topcoder.atlassian.net/browse/PM-2539

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.

@kkartunov kkartunov merged commit f0d1918 into develop Oct 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants