add more mysql stuff

This commit is contained in:
2023-07-12 09:06:29 +02:00
parent 865141d945
commit fbedf9e95e
13 changed files with 105 additions and 65 deletions

View File

@@ -16,6 +16,10 @@ module.exports.getData = function getData ( db, searchQuery ) {
} );
};
module.exports.writeData = function writeData ( db ) {
};
module.exports.getJSONData = function getData ( file ) {
return new Promise( ( resolve, reject ) => {
fs.readFile( path.join( __dirname + '/../../' + file ), ( error, data ) => {