A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix
aichy1268d7657454a8f
diff --git a/internal/service/collection_service.go b/internal/service/collection_service.goindex 2dcec893..5b18fdd7 100644--- a/internal/service/collection_service.go+++ b/internal/service/collection_service.go@@ -61,13 +61,11 @@ func (cs *CollectionService) CollectionSwitch(ctx context.Context, dto *schema.Creturn nil, err}if !has {-- defaultGroup, err := cs.collectionGroupRepo.AddCollectionDefaultGroup(ctx, dto.UserID)+ dbdefaultGroup, err := cs.collectionGroupRepo.AddCollectionDefaultGroup(ctx, dto.UserID)if err != nil {return nil, err}- dto.GroupID = defaultGroup.ID-+ dto.GroupID = dbdefaultGroup.ID} else {dto.GroupID = defaultGroup.ID}