This commit is contained in:
Neil Alexander 2022-10-06 09:38:05 +01:00
parent b39f38263e
commit d38f302c85
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -90,6 +90,7 @@ func (r *Inviter) PerformInvite(
if err = r.UserAPI.QueryAccountAvailability(ctx, userReq, userRes); err != nil { if err = r.UserAPI.QueryAccountAvailability(ctx, userReq, userRes); err != nil {
return nil, fmt.Errorf("r.UserAPI.QueryAccountAvailability: %w", err) return nil, fmt.Errorf("r.UserAPI.QueryAccountAvailability: %w", err)
} }
// If the user ID is "available" then that user doesn't exist.
if userRes.Available { if userRes.Available {
res.Error = &api.PerformError{ res.Error = &api.PerformError{
Code: api.PerformErrorNotFound, Code: api.PerformErrorNotFound,