From 27e1196130e9bf4aa8485d6435ca2a13cd864b57 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Mar 2025 21:39:35 +0800 Subject: [PATCH] :bug: Fix wrong determine of experience --- pkg/internal/services/programs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/services/programs.go b/pkg/internal/services/programs.go index 64a1d38..6de89e8 100644 --- a/pkg/internal/services/programs.go +++ b/pkg/internal/services/programs.go @@ -20,7 +20,7 @@ func JoinProgram(user models.Account, program models.Program) (models.ProgramMem return member, fmt.Errorf("program member already exists") } var profile models.AccountProfile - if err := database.C.Where("account_id = ?", user.ID).Select("Experience").First(&profile).Error; err != nil { + if err := database.C.Where("account_id = ?", user.ID).Select("experience").First(&profile).Error; err != nil { return member, err } if program.ExpRequirement < int64(profile.Experience) {