From 758c63777f94757647b704df7a1aeae37c9585d0 Mon Sep 17 00:00:00 2001 From: Chathura Ekanayake Date: Mon, 18 Dec 2023 13:08:19 +0530 Subject: [PATCH] Change a variable name to be more readable. --- shopify-customer-to-salesforce-customer/main.bal | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shopify-customer-to-salesforce-customer/main.bal b/shopify-customer-to-salesforce-customer/main.bal index 9ab4244..df1243f 100644 --- a/shopify-customer-to-salesforce-customer/main.bal +++ b/shopify-customer-to-salesforce-customer/main.bal @@ -34,10 +34,10 @@ function transformCustomerData(ShopifyCustomer shopifyCustomer) returns Salesfor } function updateSalesforce(SalesforceCustomer sfCustomer) returns error? { - stream customerQuery = check salesforce->query( + stream 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 {