Refactored code.

This commit is contained in:
Michael Mainguy 2023-11-06 05:39:30 -06:00
parent 80ef1b595f
commit 8039962dbf

View File

@ -43,7 +43,7 @@ async function checkIfDbExists(params: Params) {
}
} catch (err) {
console.log("DB not Found");
console.log(err);
//console.log(err);
}
return false;
}
@ -60,7 +60,8 @@ async function createDB(params: Params) {
'Accept': 'application/json'
}
});
const data = await response.data;
const data = response.data;
console.log(JSON.stringify(response));
return data;
}