fix(db-schema): typo fixed in group.hasCancelled() schema metod name

This commit is contained in:
hamboomger 2020-03-26 19:33:35 +02:00
parent 00d12e83bd
commit fdf7e3a665

View file

@ -1677,7 +1677,7 @@ schema.methods.hasNotCancelled = function hasNotCancelled () {
return Boolean(this.hasActiveGroupPlan() && !plan.dateTerminated);
};
schema.methods.hasCancelled = function hasNotCancelled () {
schema.methods.hasCancelled = function hasCancelled () {
const { plan } = this.purchased;
return Boolean(this.hasActiveGroupPlan() && plan.dateTerminated);
};