Skip to content

Commit

Permalink
missed an await keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
bcollard committed Feb 9, 2024
1 parent 42908e1 commit fd606f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/app/postgresql.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ pool.on("error", (err, clients) => {

const search = async (itemName) => {
await logger.info('pool details: ' + JSON.stringify(pool));
await dnsPromises.lookup(pool.options.host, dnsOptions).then((result) => {
logger.info('DNS lookup for host ' + pool.options.host + ': %j', result);
await dnsPromises.lookup(pool.options.host, dnsOptions).then(async (result) => {
await logger.info('DNS lookup for host ' + pool.options.host + ': %j', result);
});
return await pool.query(
`SELECT data FROM marketItems WHERE name ILIKE '%${itemName}%'`
Expand Down

0 comments on commit fd606f1

Please sign in to comment.