backend api refactoring
This commit is contained in:
@@ -15,7 +15,7 @@ constants.apiResultCodes = {
|
|||||||
ok:0,
|
ok:0,
|
||||||
amazonError:1,
|
amazonError:1,
|
||||||
databaseError:2,
|
databaseError:2,
|
||||||
|
IDLengthError:3,
|
||||||
}
|
}
|
||||||
|
|
||||||
constants.skillIDLength = 24;
|
constants.skillIDLength = 24;
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ router.put ('/:id', bodyParser.json (), async (req, res, next) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//no new skills for now
|
res.json ({result: constants.IDLengthError, message: ''});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user