diff --git a/src/modules/cards/infrastructure/cards.repository.ts b/src/modules/cards/infrastructure/cards.repository.ts index 8fe201d..a88ad15 100644 --- a/src/modules/cards/infrastructure/cards.repository.ts +++ b/src/modules/cards/infrastructure/cards.repository.ts @@ -113,7 +113,6 @@ export class CardsRepository { ...queryParams )) satisfies Array - console.log('123', sqlQuery, queryParams) const cards: CardWithGrades[] = cardsRaw.map(({ userGrade, ...card }) => ({ ...card, grades: [ diff --git a/src/modules/decks/infrastructure/decks.repository.ts b/src/modules/decks/infrastructure/decks.repository.ts index 984d265..e7927a8 100644 --- a/src/modules/decks/infrastructure/decks.repository.ts +++ b/src/modules/decks/infrastructure/decks.repository.ts @@ -61,8 +61,6 @@ export class DecksRepository { const result = await this.prisma .$queryRaw`SELECT MAX(card_count) as "maxCardsCount", MIN(card_count) as "minCardsCount" FROM (SELECT deck.id, COUNT(card.id) as card_count FROM deck LEFT JOIN card ON deck.id = card."deckId" GROUP BY deck.id) AS card_counts;` - console.log(result) - return { max: Number(result[0].maxCardsCount), min: Number(result[0].minCardsCount), diff --git a/src/prisma.service.ts b/src/prisma.service.ts index 2e023b3..9e8aaae 100644 --- a/src/prisma.service.ts +++ b/src/prisma.service.ts @@ -3,28 +3,28 @@ import { PrismaClient } from '@prisma/client' @Injectable() export class PrismaService extends PrismaClient implements OnModuleInit { - constructor() { - super({ - log: [ - { - emit: 'stdout', - level: 'query', - }, - { - emit: 'stdout', - level: 'error', - }, - { - emit: 'stdout', - level: 'info', - }, - { - emit: 'stdout', - level: 'warn', - }, - ], - }) - } + // constructor() { + // super({ + // log: [ + // { + // emit: 'stdout', + // level: 'query', + // }, + // { + // emit: 'stdout', + // level: 'error', + // }, + // { + // emit: 'stdout', + // level: 'info', + // }, + // { + // emit: 'stdout', + // level: 'warn', + // }, + // ], + // }) + // } async onModuleInit() { await this.$connect()