From 02d6801a7fa6d0fae3e42b335af3a2b3292373fa Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 5 Jul 2024 21:06:54 +0800 Subject: [PATCH] :bug: Fix mis spells --- pkg/internal/services/reactions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/services/reactions.go b/pkg/internal/services/reactions.go index ff96985..e159fe3 100644 --- a/pkg/internal/services/reactions.go +++ b/pkg/internal/services/reactions.go @@ -39,7 +39,7 @@ func BatchListResourceReactions(tx *gorm.DB, indexField string) (map[uint]map[st reactInfo := map[uint]map[string]int64{} if err := tx.Model(&models.Reaction{}). - Select(fmt.Sprintf("%s as id, symbol, COUNT(id) as count"), indexField). + Select(fmt.Sprintf("%s as id, symbol, COUNT(id) as count", indexField)). Group("id, symbol"). Scan(&reactions).Error; err != nil { return reactInfo, err