@glissandoo/lib 1.14.0 → 1.14.1
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.
- package/models/Group/index.js +1 -1
- package/package.json +1 -1
package/models/Group/index.js
CHANGED
|
@@ -146,7 +146,7 @@ class Group extends basic_1.default {
|
|
|
146
146
|
get isExpiredTrial() {
|
|
147
147
|
const isOutDateTrial = date_fns_1.isBefore(this.createdAt.toDate(), date_fns_1.subMonths(new Date(), 1));
|
|
148
148
|
const members = this.activePlayers.length;
|
|
149
|
-
const isAboveMembersLimitPlanFree = members
|
|
149
|
+
const isAboveMembersLimitPlanFree = members > plans_1.membersPerPlan[plans_1.PlansGroup.Piano];
|
|
150
150
|
return this.status !== types_1.GroupStatus.Premium && isOutDateTrial && isAboveMembersLimitPlanFree;
|
|
151
151
|
}
|
|
152
152
|
get stageTemplates() {
|