remove extra consol logs
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
bd845b47f0
commit
eed39a007b
2
db.js
2
db.js
@ -26,11 +26,9 @@ function requestResources (user, resources) {
|
|||||||
let approved = true;
|
let approved = true;
|
||||||
Object.keys(resources).forEach((element) => {
|
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
|
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;
|
approved = false;
|
||||||
}
|
}
|
||||||
else if (db[user][element] - resources[element] < 0) {
|
else if (db[user][element] - resources[element] < 0) {
|
||||||
console.log("b")
|
|
||||||
approved = false;
|
approved = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user