mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 05:52:38 +08:00

When the invite was being redeemed and the ReviewableUser record status for the invited user was not pending an error was being raised. This commit makes sure that we are only looking for ReviewableUser record with status pending and updates that to approved.