json db has major bug -> fix under way

This commit is contained in:
2023-08-25 20:09:55 +02:00
parent 9952566b6b
commit 97183cb304
3 changed files with 13 additions and 5 deletions

View File

@@ -47,6 +47,7 @@ module.exports.getData = ( db ) => {
};
module.exports.writeDataSimple = ( db, column, searchQuery, data ) => {
console.log( 'writingData' );
return new Promise( ( resolve, reject ) => {
dbh.query( { 'command': 'checkDataAvailability', 'property': column, 'searchQuery': searchQuery }, dbRef[ db ] ).then( res => {
if ( res.length > 0 ) {