chore: update configuration and improve schema imports
- Updated biome.json to include "graphql.d.ts" in the ignored files list. - Updated subproject commit reference in epess-database to the latest version. - Removed unused script from package.json and streamlined module file extensions in tsconfig.json. - Consolidated exclude patterns in tsconfig.build.json for clarity. - Refactored imports across multiple schema files for consistency and improved readability. - Enhanced various schema files by ensuring proper import order and removing redundant code. - Improved error handling and data integrity checks in several service and schema files.
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
import {
|
||||
INestApplication,
|
||||
Injectable,
|
||||
Logger,
|
||||
OnModuleInit,
|
||||
} from '@nestjs/common'
|
||||
import { INestApplication, Injectable, Logger, OnModuleInit } from '@nestjs/common'
|
||||
|
||||
import { PrismaClient } from '@prisma/client'
|
||||
|
||||
@@ -51,14 +46,10 @@ export class PrismaService extends PrismaClient implements OnModuleInit {
|
||||
return
|
||||
} catch (error) {
|
||||
if (attempt < maxRetry) {
|
||||
this.logger.warn(
|
||||
`Connection attempt ${attempt} failed. Retrying in ${retryDelay}ms...`,
|
||||
)
|
||||
this.logger.warn(`Connection attempt ${attempt} failed. Retrying in ${retryDelay}ms...`)
|
||||
await this.delay(retryDelay)
|
||||
} else {
|
||||
this.logger.error(
|
||||
`Failed to connect to the database after ${maxRetry} attempts.`,
|
||||
)
|
||||
this.logger.error(`Failed to connect to the database after ${maxRetry} attempts.`)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user