Merge pull request #2556 from balena-io/fix-update-notification

fix(GUI): Fix update notification error
This commit is contained in:
Lorenzo Alberto Maria Ambrosi 2018-11-26 17:08:49 +01:00 committed by GitHub
commit b7c4562b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ exports.shouldCheckForUpdates = (options) => {
return true
}
return Date.now() - options.lastSleptUpdateNotifier > units.daysToMilliseconds(this.UPDATE_NOTIFIER_SLEEP_DAYS)
return Date.now() - options.lastSleptUpdateNotifier > units.daysToMilliseconds(exports.UPDATE_NOTIFIER_SLEEP_DAYS)
}
/**
@ -117,7 +117,7 @@ exports.notify = (version, options = {}) => {
if (_.get(options, [ 'allowSleepUpdateCheck' ], true)) {
_.merge(dialogOptions, {
checkboxLabel: `Remind me again in ${this.UPDATE_NOTIFIER_SLEEP_DAYS} days`,
checkboxLabel: `Remind me again in ${exports.UPDATE_NOTIFIER_SLEEP_DAYS} days`,
checkboxChecked: false
})
}