Fix missing async

This commit is contained in:
Yarmo Mackenbach 2021-04-15 12:55:27 +02:00
parent 6f6506bf23
commit ddebc2d58b
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -25,7 +25,7 @@ module.exports = async (data, opts) => {
)
})
const fetchPromise = new Promise((resolve, reject) => {
const fetchPromise = new Promise(async (resolve, reject) => {
const urlUser = `https://${data.domain}/api/v4/users?username=${data.username}`
let resUser
try {