Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #182 from Grupo-G03-4SOAT-FIAP/feature/98/mercado-…
Browse files Browse the repository at this point in the history
…pago

refactor: Remove console.log()
  • Loading branch information
dannevesdantas authored Apr 12, 2024
2 parents 1490fbc + 929ef16 commit 67a1814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/application/use_cases/pedido/pedido.use_case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ export class PedidoUseCase implements IPedidoUseCase {
async webhookPagamento(
id: string,
topic: string,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
mensagem: MensagemMercadoPagoDTO,
): Promise<any> {
if (id && topic === 'merchant_order') {
console.log(mensagem);
const pedidoGatewayPag =
await this.gatewayPagamentoService.consultarPedido(id);
const idInternoPedido = pedidoGatewayPag.external_reference;
Expand Down
2 changes: 1 addition & 1 deletion src/domain/common/utils/generate_document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ export function gerarFakeCpf(mask: boolean = false) {

if (mask) return `${n1}${n2}${n3}.${n4}${n5}${n6}.${n7}${n8}${n9}-${d1}${d2}`;
else return `${n1}${n2}${n3}${n4}${n5}${n6}${n7}${n8}${n9}${d1}${d2}`;
}
}

0 comments on commit 67a1814

Please sign in to comment.