Remove upgrade flag

This is not used since ages since we changed our update methodology
This commit is contained in:
Girish Ramakrishnan
2018-11-20 10:29:54 -08:00
parent 329cc80933
commit e04b7b55b0
5 changed files with 8 additions and 62 deletions

View File

@@ -42,7 +42,6 @@ function update(req, res, next) {
updater.updateToLatest(auditSource, function (error) {
if (error && error.reason === UpdaterError.ALREADY_UPTODATE) return next(new HttpError(422, error.message));
if (error && error.reason === UpdaterError.BAD_STATE) return next(new HttpError(409, error.message));
if (error && error.reason === UpdaterError.SELF_UPGRADE_NOT_SUPPORTED) return next(new HttpError(412, error.message));
if (error) return next(new HttpError(500, error));
next(new HttpSuccess(202, {}));