Skip to content

Commit

Permalink
Fix broken sql statement
Browse files Browse the repository at this point in the history
  • Loading branch information
rcy committed Sep 30, 2023
1 parent 3a36012 commit 94bb26b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/irc.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (bot *Bot) SendMissed(channel string, nick string) {
}

notes := []notes.Note{}
model.DB.Select(&notes, "select * from notes where created_at > ? order and nick <> target by created_at asc limit 69", channelNick.UpdatedAt)
model.DB.Select(&notes, "select * from notes where created_at > ? and nick <> target order by created_at asc limit 69", channelNick.UpdatedAt)

if len(notes) > 0 {
bot.Conn.Privmsgf(nick, "Hi %s, you missed %d thing(s) in %s since %s:",
Expand Down

0 comments on commit 94bb26b

Please sign in to comment.