backend api refactoring
This commit is contained in:
@@ -15,7 +15,7 @@ constants.apiResultCodes = {
|
||||
ok:0,
|
||||
amazonError:1,
|
||||
databaseError:2,
|
||||
|
||||
IDLengthError:3,
|
||||
}
|
||||
|
||||
constants.skillIDLength = 24;
|
||||
|
||||
@@ -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: ''});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user