Skip to content

Commit

Permalink
feat(subscription-service): remove sonar issues
Browse files Browse the repository at this point in the history
remove sonar issues

BREAKING CHANGE:
yes

gh-34
  • Loading branch information
Tyagi-Sunny committed Sep 10, 2024
1 parent 4db5c4b commit 79a9735
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion services/subscription-service/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ typings/
.node_repl_history

# Output of 'npm pack'
*.tgz
# *.tgz

# Yarn Integrity file
.yarn-integrity
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class BillingCustomerController {
): Promise<{customerDetails: CustomerDto; info: BillingCustomer}> {
const customers = await this.billingCustomerRepository.find(filter);
if (customers.length == 0) {
throw new Error(' Customer with tenantId is not present');
throw new Error('Customer is not present');
}

const customer = await this.billingProvider.getCustomers(
Expand Down Expand Up @@ -173,7 +173,7 @@ export class BillingCustomerController {
});

if (customers.length == 0) {
throw new Error('Customer with tenantId is not present');
throw new Error(`Customer with tenantId ${tenantId} is not present`);
}
await this.billingProvider.updateCustomerById(
customers[0].customerId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export class WebhookController {
@intercept(WEBHOOK_VERIFIER)
@post('/webhooks/billing-payment')
async handleWebhook(@requestBody() payload: IPayload): Promise<void> {
const event = payload.event_type;
const content = payload.content;
await this.handlePayment(content);
}
Expand Down

0 comments on commit 79a9735

Please sign in to comment.