billing - do not show session in errors when billing is OFF
MODIFY
src/storage/mongodb/TransactionStorage.ts
src/storage/mongodb/TransactionStorage.ts
@@ -1283,6 +1283,9 @@ export default class TransactionStorage {
return [
{
$match: {
+ $and: [
+ { 'billingData.isTransactionBillingActivated': { $eq: true } },
+ {
$or: [
{ 'billingData': { $exists: false } },
{ 'billingData.stop': { $exists: false } },
@@ -1290,6 +1293,8 @@ export default class TransactionStorage {
{ 'billingData.stop.invoiceID': { $eq: null } }
]
}
+ ]
+ }
},
{ $addFields: { 'errorCode': TransactionInErrorType.NO_BILLING_DATA } }
];

billing - do not show session in errors when billing is OFF