From 7c1a8eb6fcb79a145e113686c11385880d7ab310 Mon Sep 17 00:00:00 2001 From: Luiz Date: Wed, 28 Jun 2023 19:18:26 -0300 Subject: [PATCH] add Producer Apply route --- src/config/upload.ts | 1 - .../producers/infra/http/controller/ProducersController.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/upload.ts b/src/config/upload.ts index 11f9166..9d55dbd 100644 --- a/src/config/upload.ts +++ b/src/config/upload.ts @@ -25,7 +25,6 @@ const storageTypes = (type: 'audio' | 'user' | 'music'|'producer') => ({ contentType: multerS3.AUTO_CONTENT_TYPE, acl: 'public-read', key: (_req, file, cb) => { - console.log(_req, file); let pasta = ''; if (type === 'user') { pasta = 'UserPhoto/'; diff --git a/src/modules/producers/infra/http/controller/ProducersController.ts b/src/modules/producers/infra/http/controller/ProducersController.ts index 8864483..0039a9d 100644 --- a/src/modules/producers/infra/http/controller/ProducersController.ts +++ b/src/modules/producers/infra/http/controller/ProducersController.ts @@ -4,6 +4,7 @@ import { Request, Response } from 'express'; import { container } from 'tsyringe'; export default class ProducersController { + public async create(req: Request, res: Response): Promise { const { name,