From 548bd6984b937c603c9b02614afe29bbd7204c30 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 23 Mar 2025 21:43:41 +0800 Subject: [PATCH] :bug: Wrong experience check --- 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 6de89e8..1e9d36d 100644 --- a/pkg/internal/services/programs.go +++ b/pkg/internal/services/programs.go @@ -23,7 +23,7 @@ func JoinProgram(user models.Account, program models.Program) (models.ProgramMem 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) { + if program.ExpRequirement > int64(profile.Experience) { return member, fmt.Errorf("insufficient experience") } member = models.ProgramMember{