taxtank-core 0.30.12 → 0.30.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5743,7 +5743,7 @@ class ServiceSubscriptionCollection extends Collection {
|
|
|
5743
5743
|
const dictionary = new Dictionary([]);
|
|
5744
5744
|
products.toArray().forEach((product) => {
|
|
5745
5745
|
const subscriptions = this.filterByProduct(product);
|
|
5746
|
-
dictionary.add(product.id, (subscriptions.getPaid()
|
|
5746
|
+
dictionary.add(product.id, (subscriptions.getPaid().first ?? subscriptions.getTrials().first));
|
|
5747
5747
|
});
|
|
5748
5748
|
return dictionary;
|
|
5749
5749
|
}
|