1
0
Fork 0

added async to search for something else (did not need it)

This commit is contained in:
grumbulon 2022-04-03 11:31:35 -04:00
parent 2c668205d7
commit 03cbb4026b
2 changed files with 2 additions and 4 deletions

View File

@ -4,7 +4,7 @@ const downloadFromBooru = require("./download");
let configFile = "./config.json";
async function search() {
function search() {
parseConfig.readConfig(configFile, (err, config) => {
if (err) {
console.log(err);

View File

@ -18,7 +18,5 @@ app.listen(port, () => {
});
function main() {
(async () => {
await search.search();
})();
search.search();
}