class Controller {
async getUser(username) {
return User.find({username});
}
}
module.exports = new Controller();
getUser is unexpected identifier
Why, it works in babel fine.
class Controller {
async getUser(username) {
return User.find({username});
}
}
module.exports = new Controller();
getUser is unexpected identifier
Why, it works in babel fine.