remove extra consol logs

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-03-24 22:14:21 +00:00
parent 3a823c85ba
commit f34d9ae523

2
db.js
View File

@ -26,11 +26,9 @@ function requestResources (user, resources) {
let approved = true;
Object.keys(resources).forEach((element) => {
if(!(element in db[user])) { // if the resource does not exist in the user's entry, assume the user is not allowed to use it
console.log("a")
approved = false;
}
else if (db[user][element] - resources[element] < 0) {
console.log("b")
approved = false;
}
});