diff --git a/src/modules/ad/domain/dtos/create-ad.request.ts b/src/modules/ad/domain/dtos/create-ad.request.ts index 90c3714..5b7e8cf 100644 --- a/src/modules/ad/domain/dtos/create-ad.request.ts +++ b/src/modules/ad/domain/dtos/create-ad.request.ts @@ -6,9 +6,7 @@ import { IsInt, IsEnum, ValidateNested, - ValidateIf, ArrayMinSize, - IsNotEmptyObject, IsUUID, } from 'class-validator'; import { Frequency } from '../types/frequency.enum'; diff --git a/src/modules/ad/domain/usecases/create-ad.usecase.ts b/src/modules/ad/domain/usecases/create-ad.usecase.ts index f8755a5..b5731da 100644 --- a/src/modules/ad/domain/usecases/create-ad.usecase.ts +++ b/src/modules/ad/domain/usecases/create-ad.usecase.ts @@ -38,7 +38,6 @@ export class CreateAdUseCase { this.setDefaultDistanceMargin(); try { - console.log(this.ad); const adCreated: Ad = await this._repository.create(this.ad); this._messager.publish('ad.create', JSON.stringify(adCreated)); this._messager.publish( diff --git a/src/modules/ad/tests/integration/ad.repository.spec.ts b/src/modules/ad/tests/integration/ad.repository.spec.ts index e597cf9..06cbc5d 100644 --- a/src/modules/ad/tests/integration/ad.repository.spec.ts +++ b/src/modules/ad/tests/integration/ad.repository.spec.ts @@ -2,7 +2,6 @@ import { Test } from '@nestjs/testing'; import { PrismaService } from '../../../database/adapters/secondaries/prisma-service'; import { AdsRepository } from '../../adapters/secondaries/ads.repository'; import { DatabaseModule } from '../../../database/database.module'; - import { Frequency } from '../../domain/types/frequency.enum'; import { AdCreation } from '../../domain/dtos/ad.creation'; import { Address } from '../../domain/entities/address'; @@ -398,9 +397,6 @@ describe('Ad Repository', () => { expect(ad).toBeNull(); }); }); - describe('Create Ad', () => { - it('should Create an ad ', async () => {}); - }); describe('create', () => { it('should create an punctual ad', async () => { const beforeCount = await prismaService.ad.count();