From cb12fa70dd5c7fadad0a47d0d9384b65913d68d2 Mon Sep 17 00:00:00 2001 From: Jordan Olshevski Date: Tue, 25 Jun 2024 10:46:57 -0500 Subject: [PATCH] Fix async 404s --- cmd/profile-async/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/profile-async/main.go b/cmd/profile-async/main.go index 4a18408..f0b16d2 100644 --- a/cmd/profile-async/main.go +++ b/cmd/profile-async/main.go @@ -22,7 +22,7 @@ var signupEmailLimiter = rate.NewLimiter(rate.Every(time.Second*10), 1) func handleUserSignupEmail(ctx context.Context, kc *keycloak.Keycloak[*datamodel.User], userID string) error { user, err := kc.GetUser(ctx, userID) - if errors.Is(err, keycloak.ErrNotFound) { + if errors.Is(keycloak.ErrNotFound, err) { return nil // ignore any users that have been deleted since being enqueued } if err != nil {