Merge pull request #755 from eltociear/patch-1

minor typo.
This commit is contained in:
Michael Quigley 2024-09-25 10:05:52 -04:00 committed by GitHub
commit 91c5d0edb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@ func (h *inviteHandler) Handle(params account.InviteParams) middleware.Responder
if oldAr, err := str.FindAccountRequestWithEmail(params.Body.Email, tx); err == nil {
logrus.Warnf("found previous account request for '%v', removing", params.Body.Email)
if err := str.DeleteAccountRequest(oldAr.Id, tx); err != nil {
logrus.Errorf("error deleteing previous account request for '%v': %v", params.Body.Email, err)
logrus.Errorf("error deleting previous account request for '%v': %v", params.Body.Email, err)
return account.NewInviteInternalServerError()
}
} else {