We do not have an 'undecided' plan state anymore

This commit is contained in:
Johannes Zellner
2018-05-29 12:38:50 +02:00
parent 48896d4e50
commit 915e04eb08
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ function checkAppUpdates(callback) {
}
// always send notifications if user is on the free plan
if (result.plan.id === 'free' || result.plan.id === 'undecided') {
if (result.plan.id === 'free') {
debug('Notifying user of app update for %s from %s to %s', app.id, app.manifest.version, updateInfo.manifest.version);
mailer.appUpdateAvailable(app, false /* subscription */, updateInfo);
return iteratorDone();
@@ -162,7 +162,7 @@ function checkBoxUpdates(callback) {
}
// always send notifications if user is on the free plan
if (result.plan.id === 'free' || result.plan.id === 'undecided') {
if (result.plan.id === 'free') {
mailer.boxUpdateAvailable(false /* hasSubscription */, updateInfo.version, updateInfo.changelog);
return done();
}