All checks were successful
check / check (push) Successful in 2m17s
Use errors.As with *sqlite.Error and SQLITE_CONSTRAINT_UNIQUE code instead of fragile strings.Contains(err.Error(), "UNIQUE") checks. Add db.IsUniqueConstraintError helper in internal/db/errors.go and replace all three string-matching call sites in api.go and auth.go.
47 KiB
47 KiB