Api refactoring #6

Merged
senaduka merged 4 commits from api-refactoring into master 2018-01-15 17:20:10 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 7e4b959ffa - Show all commits

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: ''});
}
});