newStaffLDB-API #48

Merged
fred.boniface merged 85 commits from newStaffLDB-API into main 2023-10-03 21:35:03 +01:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 011da17f0c - Show all commits

View File

@ -16,7 +16,9 @@ export const statusCodes = {
export const msgCodes = new Map <string, string>([
["LOC_NOT_FOUND", "Location not found. If you are sure that the location exists, there may be a fault with the data provider."],
["USR_NOT_FOUND", "User is not registered, consider regeristering for access to this resource"],
["AUTH_ERR", "Authentication Error"],
["OK", "OK"]
])
module.exports = statusCodes;

View File

@ -80,8 +80,8 @@ async function arrDepBoardStaff(CRS) {
console.log("Transformation Test Successful");
console.log(JSON.stringify(_staffLdb));
return {
obStatus: 200,
obMsg: "success",
obStatus: "OK",
obMsg: msgCodes.get("OK"),
data: _staffLdb,
};
} catch (err) {