Skip to content

Commit

Permalink
fix(zip): code interface
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-bechara committed Sep 7, 2024
1 parent ab99886 commit 10f9e7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/zip/zip.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export class ZipService {
* Busca um Código de Endereçamento Postal nos Correios e o enriquece com o município no IBGE.
* @param params
*/
public read(params: Pick<ZipDto, 'zip'>): Promise<ZipDto> {
const { zip } = params;
public read(params: Pick<ZipDto, 'code'>): Promise<ZipDto> {
const { code } = params;

return this.httpService.get('zip/:zip', {
replacements: { zip },
return this.httpService.get('zip/:code', {
replacements: { code },
});
}

Expand Down

0 comments on commit 10f9e7c

Please sign in to comment.