Skip to content

Commit

Permalink
Fix async 404s
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Jun 25, 2024
1 parent 3ac9694 commit cb12fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/profile-async/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cb12fa7

Please sign in to comment.