feta: update sortBy on list article
This commit is contained in:
parent
d859312788
commit
8f9b5b112d
|
|
@ -30,7 +30,7 @@ export async function getListArticle(props: PaginationRequest) {
|
|||
"content-type": "application/json",
|
||||
};
|
||||
return await httpGet(
|
||||
`/articles?sort=desc&sortBy=published_at&limit=${limit}&page=${page}&isPublish=${
|
||||
`/articles?sort=desc&sortBy=created_at&limit=${limit}&page=${page}&isPublish=${
|
||||
isPublish === undefined ? "" : isPublish
|
||||
}&title=${search}&startDate=${startDate || ""}&endDate=${
|
||||
endDate || ""
|
||||
|
|
@ -50,7 +50,7 @@ export async function getTopArticles(props: PaginationRequest) {
|
|||
"content-type": "application/json",
|
||||
};
|
||||
return await httpGet(
|
||||
`/articles?sort=desc&sortBy=published_at&limit=${limit}&page=${page}&isPublish=${
|
||||
`/articles?sort=desc&sortBy=created_at&limit=${limit}&page=${page}&isPublish=${
|
||||
isPublish === undefined ? "" : isPublish
|
||||
}&title=${search}&startDate=${startDate || ""}&endDate=${
|
||||
endDate || ""
|
||||
|
|
|
|||
Loading…
Reference in New Issue