master
Marcus 2020-11-23 02:48:30 -05:00
parent 21ccaa56df
commit d4fa74097d
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ module.exports = async function (req, res) {
function getRandom() {
return new Promise(res => {
return new Promise(resolve => {
request({
url: 'http://colorhunt.co/hunt.php',
form: {
@ -96,7 +96,7 @@ function getRandom() {
tags: ''
}
}, function(error, res, body) {
res(body);
resolve(body);
})
});
}