Browse Source

maybe fix comment order?

master 2.2.7
Gisle Aune 3 years ago
parent
commit
09d31aabac
  1. 1
      database/postgres/queries/comments.sql

1
database/postgres/queries/comments.sql

@ -22,6 +22,7 @@ WHERE id = @id;
-- name: SelectComments :many -- name: SelectComments :many
SELECT * FROM story_comment SELECT * FROM story_comment
WHERE (@chapter_id = '' OR chapter_id = @chapter_id) WHERE (@chapter_id = '' OR chapter_id = @chapter_id)
ORDER BY fictional_date, created_date
LIMIT NULLIF(@limit_size::INT, 0); LIMIT NULLIF(@limit_size::INT, 0);
-- name: DeleteComment :exec -- name: DeleteComment :exec

Loading…
Cancel
Save