improved error loggin and updated imports to fix build failure
This commit is contained in:
@@ -58,15 +58,9 @@ ApiProxy.get(async (req, res) => {
|
||||
if (hashAPIPath(checkquerypath) == "&hash=" + checkHash) {
|
||||
const blobObj = await getRepsBlobs(containerName, casefolderID)
|
||||
.then(async (data) => {
|
||||
//console.log(
|
||||
// "\n////////////////////////////\n getRepsBlobs:",
|
||||
// data
|
||||
// );
|
||||
return data;
|
||||
})
|
||||
.then(async (data) => {
|
||||
//console.log("\n////////////////////////////\n now here:", data);
|
||||
|
||||
let result = await downloadAllRepsFiles(containerName, data);
|
||||
|
||||
return res
|
||||
@@ -75,17 +69,10 @@ ApiProxy.get(async (req, res) => {
|
||||
.json(result);
|
||||
})
|
||||
.catch((error) => {
|
||||
//console.log(
|
||||
// "///////////////////////\ngetRepsFromBlob api in api route response: " +
|
||||
// error +
|
||||
// "\n///////////////////////\n"
|
||||
// );
|
||||
//console.log("API call error", error);
|
||||
|
||||
console.log(consoleLogger(error));
|
||||
consoleLogger(error);
|
||||
});
|
||||
} else {
|
||||
return res.status(400).json({ msg: "error" });
|
||||
return res.status(400).json();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user