Skip to content

Commit

Permalink
Change a variable name to be more readable.
Browse files Browse the repository at this point in the history
  • Loading branch information
chathurace authored Dec 18, 2023
1 parent e1d4b2c commit 758c637
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shopify-customer-to-salesforce-customer/main.bal
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ function transformCustomerData(ShopifyCustomer shopifyCustomer) returns Salesfor
}

function updateSalesforce(SalesforceCustomer sfCustomer) returns error? {
stream<Id, error?> customerQuery = check salesforce->query(
stream<Id, error?> customerStream = check salesforce->query(
string `SELECT Id FROM HmartCustomer__c WHERE Email__c = '${sfCustomer.Email__c}'`);
record {|Id value;|}? existingCustomer = check customerQuery.next();
check customerQuery.close();
record {|Id value;|}? existingCustomer = check customerStream.next();
check customerStream.close();
if existingCustomer is () {
_ = check salesforce->create("HmartCustomer__c", sfCustomer);
} else {
Expand Down

0 comments on commit 758c637

Please sign in to comment.