module.exports = class User {
/* got a request => */
onLoad() {
if (!this.session.user) {
/* no user session found, returning false and request ended with 403 error => */
this.send('Forbidden', 403);
return false;
}
}
async someAction() {
/* !!! code here is still executing => */
}
}
The code executed after exiting onLoad().
Expected finishing request controller methods EXECUTION after returning
false
inside onLoad()