Skip to content

Commit fe53c70

Browse files
author
Vikas Agarwal
committed
fix: git#635-Show only active Billing Accounts from the billing accounts endpoint
1 parent 5e31b5b commit fe53c70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/billingAccounts/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = [
2626
try {
2727
const { accessToken, instanceUrl } = await SalesforceService.authenticate();
2828
// eslint-disable-next-line
29-
const sql = `SELECT Topcoder_Billing_Account__r.id, Topcoder_Billing_Account__r.TopCoder_Billing_Account_Id__c, Topcoder_Billing_Account__r.Billing_Account_Name__c, Topcoder_Billing_Account__r.Start_Date__c, Topcoder_Billing_Account__r.End_Date__c from Topcoder_Billing_Account_Resource__c tbar where UserID__c='${userId}'`;
29+
const sql = `SELECT Topcoder_Billing_Account__r.id, Topcoder_Billing_Account__r.TopCoder_Billing_Account_Id__c, Topcoder_Billing_Account__r.Billing_Account_Name__c, Topcoder_Billing_Account__r.Start_Date__c, Topcoder_Billing_Account__r.End_Date__c from Topcoder_Billing_Account_Resource__c tbar where Topcoder_Billing_Account__r.Active__c=true AND UserID__c='${userId}'`;
3030
// and Topcoder_Billing_Account__r.TC_Connect_Project_ID__c='${projectId}'
3131
req.log.debug(sql);
3232
const billingAccounts = await SalesforceService.queryUserBillingAccounts(sql, accessToken, instanceUrl, req.log);

0 commit comments

Comments
 (0)