Skip to content

Commit

Permalink
fix: get announcement from database
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesuaheli committed Dec 26, 2024
1 parent 42cee05 commit 3759dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/announcements.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func GetAnnouncement(platform Platform, platformID string) ([]*Announcement, err
announcements := make([]*Announcement, 0)
for rows.Next() {
var guildID, channelID, messageID, roleID, notification string
if err := rows.Scan(&guildID, &channelID, &messageID, &roleID); err != nil {
if err := rows.Scan(&guildID, &channelID, &messageID, &roleID, &notification); err != nil {
return []*Announcement{}, err
}
announcements = append(announcements, &Announcement{guildID, channelID, messageID, roleID, platform, platformID, notification})
Expand Down

0 comments on commit 3759dc4

Please sign in to comment.