Skip to content

Commit

Permalink
remove async json stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
bcollard committed Feb 12, 2024
1 parent 04eae8e commit 52e37e0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions api/app/postgresql.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ pool.on("error", (err, clients) => {
});

const search = async (itemName) => {
const poolDetails = await asyncStringify(pool);
await logger.debug('pool details: ' + poolDetails);
await dnsPromises.lookup(pool.options.host, dnsOptions).then(async (result) => {
await logger.info('DNS lookup for host ' + pool.options.host + ': %j', result);
});
Expand Down Expand Up @@ -67,11 +65,6 @@ const importData = () => {
})().catch((e) => logger.error(e.stack));
};

function asyncStringify(str) {
return new Promise((resolve, reject) => {
resolve(JSON.stringify(str));
});
}

module.exports = Object.assign({
search,
Expand Down

0 comments on commit 52e37e0

Please sign in to comment.