Sort awtis by updatedAt
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ export async function jwennTeksKantite() {
|
||||
|
||||
export async function jwennAwtisPajinasyon(paj) {
|
||||
const start = AWTIS_POU_CHAK_PAJ * (paj - 1)
|
||||
const query = `_sort=alias:ASC&_start=${start}&_limit=${AWTIS_POU_CHAK_PAJ}&_where[published_at_null]=false`
|
||||
const query = `_sort=updatedAt:DESC&_start=${start}&_limit=${AWTIS_POU_CHAK_PAJ}&_where[published_at_null]=false`
|
||||
|
||||
const response = await axios.get(`${OKI_API}/awtis?${query}`)
|
||||
return response.data
|
||||
|
||||
Reference in New Issue
Block a user