-
Notifications
You must be signed in to change notification settings - Fork 9
chore(PM-2539): added timeout for prisma service #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -77,6 +77,7 @@ workflows: | |
| - feat/ai-workflows | ||
| - pm-1955_2 | ||
| - re-try-failed-jobs | ||
| - pm-2539 | ||
|
|
||
|
|
||
| - 'build-prod': | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| import { Injectable, OnModuleDestroy, OnModuleInit } from '@nestjs/common'; | ||
| import { PrismaClient, Prisma } from '@prisma/client'; | ||
| import { LoggerService } from './logger.service'; | ||
| import { Utils } from './utils.service'; | ||
|
|
||
| @Injectable() | ||
| export class ChallengePrismaService | ||
|
|
@@ -11,6 +12,7 @@ export class ChallengePrismaService | |
|
|
||
| constructor() { | ||
| super({ | ||
| ...Utils.getPrismaTimeout(), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [❗❗ |
||
| log: [ | ||
| { level: 'query', emit: 'event' }, | ||
| { level: 'info', emit: 'event' }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| import { Injectable, OnModuleDestroy, OnModuleInit } from '@nestjs/common'; | ||
| import { PrismaClient, Prisma } from '@prisma/client-member'; | ||
| import { LoggerService } from './logger.service'; | ||
| import { Utils } from './utils.service'; | ||
|
|
||
| @Injectable() | ||
| export class MemberPrismaService | ||
|
|
@@ -11,6 +12,7 @@ export class MemberPrismaService | |
|
|
||
| constructor() { | ||
| super({ | ||
| ...Utils.getPrismaTimeout(), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [ |
||
| log: [ | ||
| { level: 'query', emit: 'event' }, | ||
| { level: 'info', emit: 'event' }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ import { PrismaClient, Prisma } from '@prisma/client'; | |
| import { LoggerService } from './logger.service'; | ||
| import { PrismaErrorService } from './prisma-error.service'; | ||
| import { getStore } from 'src/shared/request/requestStore'; | ||
| import { Utils } from './utils.service'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [❗❗ |
||
|
|
||
| enum auditField { | ||
| createdBy = 'createdBy', | ||
|
|
@@ -197,6 +198,7 @@ export class PrismaService | |
| const schema = process.env.POSTGRES_SCHEMA || 'public'; | ||
|
|
||
| super({ | ||
| ...Utils.getPrismaTimeout(), | ||
| log: [ | ||
| { level: 'query', emit: 'event' }, | ||
| { level: 'info', emit: 'event' }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| import { Injectable, OnModuleDestroy, OnModuleInit } from '@nestjs/common'; | ||
| import { PrismaClient, Prisma } from '@prisma/client-resource'; | ||
| import { LoggerService } from './logger.service'; | ||
| import { Utils } from './utils.service'; | ||
|
|
||
| @Injectable() | ||
| export class ResourcePrismaService | ||
|
|
@@ -11,6 +12,7 @@ export class ResourcePrismaService | |
|
|
||
| constructor() { | ||
| super({ | ||
| ...Utils.getPrismaTimeout(), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [❗❗ |
||
| log: [ | ||
| { level: 'query', emit: 'event' }, | ||
| { level: 'info', emit: 'event' }, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.