Skip to content

Commit

Permalink
style: Fix long SQL line
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsvante committed Oct 19, 2023
1 parent 10a006d commit 3a28911
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions queries/color.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ SELECT
'url',
image.url
)
ORDER BY image.position ASC, image.uploaded_at DESC) FILTER (WHERE image.id IS NOT NULL
), '[]'::jsonb) AS "images"
ORDER BY image.position ASC, image.uploaded_at DESC
) FILTER (WHERE image.id IS NOT NULL), '[]'::jsonb) AS "images"
FROM
color
INNER JOIN style ON style.id = color.style_id
Expand Down Expand Up @@ -74,8 +74,8 @@ SELECT
'url',
image.url
)
ORDER BY image.position ASC, image.uploaded_at DESC) FILTER (WHERE image.id IS NOT NULL
), '[]'::jsonb) AS "images"
ORDER BY image.position ASC, image.uploaded_at DESC
) FILTER (WHERE image.id IS NOT NULL), '[]'::jsonb) AS "images"
FROM
color
INNER JOIN style ON style.id = color.style_id
Expand Down

0 comments on commit 3a28911

Please sign in to comment.