Skip to content

Commit

Permalink
Handle no feed ids in groups query
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Apr 13, 2024
1 parent 5a36594 commit 4c3c6ce
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ SELECT
id,
name,
feedIds,
(SELECT GROUP_CONCAT(feed.icon)
FROM feed
WHERE feed.id IN (feedGroup.feedIds)
LIMIT 4) AS feedIcons,
COALESCE((SELECT GROUP_CONCAT(feed.icon)
FROM feed
WHERE feed.id IN (feedGroup.feedIds)
LIMIT 4), '') AS feedIcons,
createdAt,
updatedAt
FROM feedGroup
Expand Down

0 comments on commit 4c3c6ce

Please sign in to comment.