adding conditional to upgrade script to handle cases where an upgrade is performed on a flag that is already in database

v1.18.x
Julian Lam 8 years ago
parent 2a33991f0d
commit 4df8832c8d

@ -385,7 +385,14 @@ Upgrade.upgrade = function (callback) {
setImmediate(next);
}
}
], next);
], function (err) {
if (err && err.message === '[[error:already-flagged]]') {
// Already flagged, no need to parse, but not an error
next();
} else {
next(err);
}
});
});
}, next);
});

Loading…
Cancel
Save