Skip to content

Commit e17a51d

Browse files
authored
Merge pull request #1169 from rocket-admin/backend_architecture_simplification_version_2
fix: update endpoint paths to ensure trailing slashes for consistency
2 parents b701c5e + 509ee47 commit e17a51d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/src/microservices/gateways/saas-gateway.ts/saas-company-gateway.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)