We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c8da02 commit 4b43ae0Copy full SHA for 4b43ae0
source/company/company.service.ts
@@ -11,12 +11,13 @@ export class CompanyService {
11
* ### Consulta Empresa
12
* Adquire os dados de uma empresa includindo todos os sócios e estabelecimentos.
13
* @param params
14
+ * @param params.companyId
15
*/
- public read(params: Pick<CompanyDto, 'id'>): Promise<CompanyDto> {
16
- const { id } = params;
+ public read(params: { companyId: number }): Promise<CompanyDto> {
17
+ const { companyId } = params;
18
- return this.httpService.get('company/:id', {
19
- replacements: { id },
+ return this.httpService.get('company/:companyId', {
20
+ replacements: { companyId },
21
});
22
}
23
0 commit comments