This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch feat/1.4.0/badge
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/feat/1.4.0/badge by this push:
     new 46ab8a20 chore(badge): remove unused comment
46ab8a20 is described below

commit 46ab8a20fe94a43c72e637415990f2591b76bb28
Author: LinkinStars <[email protected]>
AuthorDate: Wed Aug 14 10:58:39 2024 +0800

    chore(badge): remove unused comment
---
 internal/service/badge/badge_event_handler.go | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/internal/service/badge/badge_event_handler.go 
b/internal/service/badge/badge_event_handler.go
index f990260b..8a92f08b 100644
--- a/internal/service/badge/badge_event_handler.go
+++ b/internal/service/badge/badge_event_handler.go
@@ -67,17 +67,6 @@ func (ns *BadgeEventService) Handler(ctx context.Context, 
msg *schema.EventMsg)
                return nil
        }
 
-       //badgeIDs := make([]string, 0)
-       //for _, award := range awards {
-       //      badgeIDs = append(badgeIDs, award.BadgeID)
-       //}
-       //
-       //badges, err := ns.badgeRepo.GetByIDs(ctx, badgeIDs)
-       //if err != nil {
-       //      log.Errorf("error getting badges %+v: %v", badgeIDs, err)
-       //      return err
-       //}
-
        for _, award := range awards {
                err := ns.badgeAwardService.Award(ctx, award.BadgeID, 
award.UserID, award.AwardKey)
                if err != nil {

Reply via email to