🐛 Fix mis spells

This commit is contained in:
LittleSheep 2024-07-05 21:06:54 +08:00
parent 0015952f92
commit 02d6801a7f

View File

@ -39,7 +39,7 @@ func BatchListResourceReactions(tx *gorm.DB, indexField string) (map[uint]map[st
reactInfo := map[uint]map[string]int64{} reactInfo := map[uint]map[string]int64{}
if err := tx.Model(&models.Reaction{}). 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"). Group("id, symbol").
Scan(&reactions).Error; err != nil { Scan(&reactions).Error; err != nil {
return reactInfo, err return reactInfo, err