Skip to content

Commit 4b43ae0

Browse files
fix(company): param name
1 parent 2c8da02 commit 4b43ae0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/company/company.service.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ export class CompanyService {
1111
* ### Consulta Empresa
1212
* Adquire os dados de uma empresa includindo todos os sócios e estabelecimentos.
1313
* @param params
14+
* @param params.companyId
1415
*/
15-
public read(params: Pick<CompanyDto, 'id'>): Promise<CompanyDto> {
16-
const { id } = params;
16+
public read(params: { companyId: number }): Promise<CompanyDto> {
17+
const { companyId } = params;
1718

18-
return this.httpService.get('company/:id', {
19-
replacements: { id },
19+
return this.httpService.get('company/:companyId', {
20+
replacements: { companyId },
2021
});
2122
}
2223

0 commit comments

Comments
 (0)