File tree Expand file tree Collapse file tree
backend/src/microservices/gateways/saas-gateway.ts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ export class SaasCompanyGatewayService extends BaseSaasGatewayService {
1313 }
1414
1515 public async getCompanyInfo ( companyId : string ) : Promise < FoundSassCompanyInfoDS | null > {
16- const result = await this . sendRequestToSaaS ( `/webhook/company/${ companyId } ` , 'GET' , null ) ;
16+ const result = await this . sendRequestToSaaS ( `/webhook/company/${ companyId } / ` , 'GET' , null ) ;
1717 if ( this . isDataFoundSassCompanyInfoDS ( result . body ) ) {
1818 return result . body ;
1919 }
2020 return null ;
2121 }
2222
2323 public async deleteCompany ( companyId : string ) : Promise < SuccessResponse | null > {
24- const result = await this . sendRequestToSaaS ( `/webhook/company/${ companyId } ` , 'DELETE' , null ) ;
24+ const result = await this . sendRequestToSaaS ( `/webhook/company/${ companyId } / ` , 'DELETE' , null ) ;
2525 if ( result . status > 299 ) {
2626 throw new HttpException (
2727 {
@@ -80,7 +80,7 @@ export class SaasCompanyGatewayService extends BaseSaasGatewayService {
8080 if ( ! isSaaS ( ) ) {
8181 return null ;
8282 }
83- const result = await this . sendRequestToSaaS ( `/webhook/company/${ companyId } /recount` , 'POST' , null ) ;
83+ const result = await this . sendRequestToSaaS ( `/webhook/company/${ companyId } /recount/ ` , 'POST' , null ) ;
8484 if ( result . status > 299 ) {
8585 throw new HttpException (
8686 {
You can’t perform that action at this time.
0 commit comments