billing - normalize billing data
MODIFY
src/storage/mongodb/TransactionStorage.ts
src/storage/mongodb/TransactionStorage.ts
@@ -1326,6 +1326,7 @@ export default class TransactionStorage {
}
private static normalizeBillingData(billingData: TransactionBillingData): any {
+ if (billingData) {
return {
withBillingActive: billingData.withBillingActive,
lastUpdate: Utils.convertToDate(billingData.lastUpdate),
@@ -1338,6 +1339,8 @@ export default class TransactionStorage {
},
};
}
+ return null;
+ }
private static getTransactionsInErrorFacet(errorType: string) {
switch (errorType) {

billing - normalize billing data