🐛 Fix mis spells
This commit is contained in:
parent
0015952f92
commit
02d6801a7f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user