We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26293b5 commit 03b0295Copy full SHA for 03b0295
1 file changed
lib/models/upgrade/index.js
@@ -70,7 +70,7 @@ function isNeeded(version, done) {
70
}
71
72
return config.save(function() {
73
- done(null, false);
+ done(undefined, false);
74
});
75
} else {
76
config = configs[0];
@@ -93,7 +93,7 @@ function isFreshDb(cb) {
93
if (err) return cb(err);
94
95
if (res === 0) {
96
- return cb(null, true);
+ return cb(undefined, true);
97
98
99
return cb(undefined, false);
@@ -102,10 +102,10 @@ function isFreshDb(cb) {
102
103
function needConfigObj(cb) {
104
models.Config.count(function(err, res) {
105
- if (err) return err;
+ if (err) return cb(err);
106
107
108
109
110
111
0 commit comments