Skip to content

Commit

Permalink
storage/mariadb: add missing GROUP BY in NewsStorage.Get
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessie committed Jun 13, 2024
1 parent 863f024 commit 37c931f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/mariadb/news.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ LEFT JOIN
LEFT JOIN
permissions ON users.id = permissions.user_id
WHERE
radio_news.id=?;
radio_news.id=?
GROUP BY
radio_news.id;
`)

// Get implements radio.NewsStorage
Expand Down

0 comments on commit 37c931f

Please sign in to comment.