server/services/authService.js
// Removes the account of a user specified by the token
Removes the account of a user specified by the token
Removes the account of a user specified by the token
static remove(token) {
    return AuthService.findUserByToken(token)
      .then((user) => { 
        return UserStatistics.remove({ username: user.username })
          .then(() => user.remove());
      });
  }
static remove ( token ) { return AuthService . findUserByToken ( token ) . then ( ( user ) => { return UserStatistics . remove ( { username : user . username } ) . then ( ( ) => user . remove ( ) ) ; } ) ; }
Removes the account of a user specified by the token
Removes the account of a user specified by the token
// eslint-disable-line arrow-body-style