fix(assessment): return confirmed categories with their basis and label demonstration categories

This commit is contained in:
shira committed 2026-10-09 21:24:24 +03:00
1 parent 623d41b969
commit d4903a3796
77 files changed
+1441 -288

No files matched your search

+2 -2
View File
@@ -639,10 +639,10 @@ func (seeder *Seeder) ensureProfile(ctx context.Context, spec accountSpec, userI
if err != nil {
return false, fmt.Errorf("read profile: %w", err)
}
if current.Version() > 0 {
if current.Profile.Version() > 0 {
return false, nil
}
if _, err := seeder.deps.Profiles.SaveMyProfile(ctx, userID, current.Version(), profileInput(spec)); err != nil {
if _, err := seeder.deps.Profiles.SaveMyProfile(ctx, userID, current.Profile.Version(), profileInput(spec)); err != nil {
return false, fmt.Errorf("save profile: %w", err)
}
return true, nil