backend api refactoring

This commit is contained in:
GotPPay
2018-01-15 16:09:09 +01:00
parent e1f315cb81
commit 7e4b959ffa
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ constants.apiResultCodes = {
ok:0,
amazonError:1,
databaseError:2,
IDLengthError:3,
}
constants.skillIDLength = 24;

View File

@@ -86,7 +86,7 @@ router.put ('/:id', bodyParser.json (), async (req, res, next) => {
});
}
} else {
//no new skills for now
res.json ({result: constants.IDLengthError, message: ''});
}
});