Skip to content

Commit

Permalink
fix: return city from cep API (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThallesP authored Mar 15, 2021
1 parent f5166b8 commit df7f174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/commands/CepCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class EconomyCommand {
);

return msg.reply(
`*CEP*: ${data.cep}\n*Logradouro*: ${data.street}\n*Bairro*: ${data.neighborhood}\n*UF*: ${data.state}`
`*CEP*: ${data.cep}\n*Logradouro*: ${data.street}\n*Cidade*: ${data.city}\n*Bairro*: ${data.neighborhood}\n*UF*: ${data.state}`
);
} catch (error) {
return msg.reply(`CEP não localizado!`);
Expand Down

0 comments on commit df7f174

Please sign in to comment.