Skip to content

Commit

Permalink
fix: wait promise
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 5, 2021
1 parent 0d93af1 commit ec6ca46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
const reqCountry = require('req-country')

module.exports = async ({ ipAddress, headers }) => {
const country = reqCountry({ ipAddress, headers })
const country = await reqCountry({ ipAddress, headers })
return { ipAddress, country }
}

0 comments on commit ec6ca46

Please sign in to comment.