These are chat archives for Automattic/mongoose

1st
Jan 2017
Rob Lao
@viewplatgh
Jan 01 2017 03:31
      return user.save()
        .then(() => res.state(204).end())
        .catch(handleError(res, 520));
user saved successfully(checked database manually), but the above code hits handleError and return 520 to f/e, I put this in get request handler, I am wondering if changing database is not allowed in get request handler?
Rob Lao
@viewplatgh
Jan 01 2017 04:05
Never mind, damn spelling error, should be status