IO-256 Fix null handling for missing metadata.

This commit is contained in:
Patrick Fic
2021-10-13 15:48:43 -07:00
parent 755ac7f657
commit 1cdc34249a
3 changed files with 8 additions and 1 deletions

View File

@@ -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;
});