Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

fix: correct apostrophe placement in collection name for new user registration

copilot-swe-agent[bot]d2f66337f598
diff --git a/backend/internal/core/services/service_user.go b/backend/internal/core/services/service_user.go
index e5106baa..d7e45a44 100644
--- a/backend/internal/core/services/service_user.go
+++ b/backend/internal/core/services/service_user.go
@@ -65,7 +65,7 @@ func (svc *UserService) RegisterUser(ctx context.Context, data UserRegistration)
case "":
log.Debug().Msg("creating new group")
creatingGroup = true
- group, err = svc.repos.Groups.GroupCreate(ctx, fmt.Sprintf("%ss' Home", data.Name), uuid.Nil)
+ group, err = svc.repos.Groups.GroupCreate(ctx, fmt.Sprintf("%s's Home", data.Name), uuid.Nil)
if err != nil {
log.Err(err).Msg("Failed to create group")
return repo.UserOut{}, err