Fix SQL.Tools

Fix SQL.Tools
This commit is contained in:
Nikiroy78 2023-03-24 23:14:03 +03:00 committed by GitHub
parent a309086ff1
commit a8574c5d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
function get_from_key (db_data, conditions) {
conditions = conditions.requestElements.requestElements.filter(i => i != {});
conditions = conditions.requestElements.filter(i => i != {});
if (conditions == [] || !conditions) return db_data;
let item = new Object();
let bool_conditions = new Array();
@ -89,4 +89,4 @@ module.exports = {
SQLEasy_error: SQLEasy_error,
get_from_key: get_from_key,
Database: db
}
}