Skip to content

Commit 9277d49

Browse files
committed
fix no scan
1 parent d917470 commit 9277d49

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

repository.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ package main
22

33
import (
44
"context"
5-
"encoding/json"
65
"errors"
7-
"fmt"
86
"log"
97
"sync"
108
"time"
@@ -678,12 +676,10 @@ func (r *Repository) GetAlmanaxDiscordMentions(id uuid.UUID) (map[string][]Menti
678676
var bonusId string
679677

680678
var mention MentionDTO
681-
var discordId uint64
682-
err = rows.Scan(&bonusId, discordId, &mention.IsRole, &mention.PingDaysBefore)
679+
err = rows.Scan(&bonusId, &mention.DiscordId, &mention.IsRole, &mention.PingDaysBefore)
683680
if err != nil {
684681
return res, err
685682
}
686-
mention.DiscordId = json.Number(fmt.Sprint(discordId))
687683

688684
res[bonusId] = append(res[bonusId], mention)
689685
}

0 commit comments

Comments
 (0)