From 5631d9b1c28d03e67f1c45174308b8202e6601dc Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Wed, 3 Jun 2026 16:14:28 +0300 Subject: [PATCH] fixed typos --- apis/record_auth_with_otp.go | 2 +- core/mfa_model.go | 2 +- core/notify_watcher_test.go | 1 + core/otp_model.go | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apis/record_auth_with_otp.go b/apis/record_auth_with_otp.go index 92e5bdce..fa2a9ed9 100644 --- a/apis/record_auth_with_otp.go +++ b/apis/record_auth_with_otp.go @@ -68,7 +68,7 @@ func recordAuthWithOTP(e *core.RequestEvent) error { otpId := e.OTP.Id otpSentTo := e.OTP.SentTo() - // eagerly delete the OTP to avoid unnecessery double delete model hook calls + // eagerly delete the OTP to avoid unnecessary double delete model hook calls // triggered by the password change below err := e.App.Delete(e.OTP) if err != nil { diff --git a/core/mfa_model.go b/core/mfa_model.go index 7a1429be..4cac5e94 100644 --- a/core/mfa_model.go +++ b/core/mfa_model.go @@ -143,7 +143,7 @@ func (app *BaseApp) registerMFAHooks() { err = e.App.DeleteAllMFAsByRecord(e.Record) if err != nil { return fmt.Errorf( - "[%s] failed to delete all previos MFAs for record %q: %w", + "[%s] failed to delete all previous MFAs for record %q: %w", e.Record.Collection().Name, e.Record.Id, err, diff --git a/core/notify_watcher_test.go b/core/notify_watcher_test.go index e3c2a32c..a081c5e5 100644 --- a/core/notify_watcher_test.go +++ b/core/notify_watcher_test.go @@ -165,6 +165,7 @@ func TestNotifyWatcher_CollectionsUpdate(t *testing.T) { t.Fatal(err) } if err := app1.Delete(dummyCollection); err != nil { + t.Fatal(err) } // block until released or timeouted diff --git a/core/otp_model.go b/core/otp_model.go index 78e58e3c..81882958 100644 --- a/core/otp_model.go +++ b/core/otp_model.go @@ -139,7 +139,7 @@ func (app *BaseApp) registerOTPHooks() { err := e.App.DeleteAllOTPsByRecord(e.Record) if err != nil { return fmt.Errorf( - "[%s] failed to delete all previos OTPs for record %q: %w", + "[%s] failed to delete all previous OTPs for record %q: %w", e.Record.Collection().Name, e.Record.Id, err,