@@ -112,7 +112,6 @@ module.exports = {
return res.render("dashboardPage/dashboard", {merchant: res.locals.merchant, transactions: transactions});
})
.catch((err)=>{
- console.log(err);
req.session.error = "ERROR: UNABLE TO RETRIEVE DATA";
return res.redirect("/");
});
@@ -552,7 +552,7 @@ class Merchant{
}
- return total / 100;
+ return total;
/*
@@ -436,7 +436,7 @@ class Merchant{