GET comments of article is paginate
This commit is contained in:
@@ -30,7 +30,6 @@ begin
|
||||
and created_by_id = _created_by_id
|
||||
|
||||
order by
|
||||
created_at desc,
|
||||
com.created_at desc
|
||||
|
||||
limit "limit" offset "offset"
|
||||
|
||||
@@ -17,7 +17,7 @@ begin
|
||||
find_citizen_by_id(com.created_by_id) as created_by
|
||||
from "comment" as com
|
||||
where parent_id = _parent_id
|
||||
order by created_at desc,
|
||||
order by created_at asc,
|
||||
com.created_at desc
|
||||
limit "limit" offset "offset"
|
||||
) as t;
|
||||
|
||||
@@ -17,7 +17,7 @@ begin
|
||||
find_citizen_by_id(com.created_by_id) as created_by
|
||||
from "comment" as com
|
||||
where com.parent_id = _target_id
|
||||
order by created_at desc,
|
||||
order by created_at asc,
|
||||
com.created_at desc
|
||||
limit "limit" offset "offset"
|
||||
) as t;
|
||||
|
||||
Reference in New Issue
Block a user