IO-256 Fix null handling for missing metadata.
This commit is contained in:
@@ -251,6 +251,7 @@ async function QueryMetaData(oauthClient, req, ro_number) {
|
||||
|
||||
paymentMethods.json &&
|
||||
paymentMethods.json.QueryResponse &&
|
||||
paymentMethods.json.QueryResponse.PaymentMethod &&
|
||||
paymentMethods.json.QueryResponse.PaymentMethod.forEach((t) => {
|
||||
paymentMethodMapping[t.Name] = t.Id;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user