File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed
packages/common/src/pages Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const OrderHistory = () => {
34
34
headers : myHeaders ,
35
35
redirect : 'follow'
36
36
}
37
- fetch ( `${ strapiUrl } /orders?filters[category]=8` , requestOptions )
37
+ fetch ( `${ strapiUrl } /orders?filters[category]=8&sort[0]=updatedAt:desc ` , requestOptions )
38
38
. then ( response => response . json ( ) )
39
39
. then ( result => {
40
40
if ( result . error ) {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const myJobsOrderHistory = () => {
26
26
redirect : 'follow'
27
27
} as RequestInit
28
28
29
- fetch ( `${ apiUrl } /orders?filters[category]=3` , requestOptions )
29
+ fetch ( `${ apiUrl } /orders?filters[category]=3&sort[0]=updatedAt:desc ` , requestOptions )
30
30
. then ( response => response . json ( ) )
31
31
. then ( result => {
32
32
setJobsOrders ( result . data )
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const myLearningOrderHistory = () => {
26
26
redirect : 'follow'
27
27
} as RequestInit
28
28
29
- fetch ( `${ apiUrl } /orders?filters[category]=1` , requestOptions )
29
+ fetch ( `${ apiUrl } /orders?filters[category]=1&sort[0]=updatedAt:desc ` , requestOptions )
30
30
. then ( response => response . json ( ) )
31
31
. then ( result => {
32
32
setCoursesOrders ( result . data )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const myScholarship = () => {
36
36
redirect : 'follow'
37
37
} as RequestInit
38
38
39
- fetch ( `${ apiUrl } /orders?filters[category]=2` , requestOptions )
39
+ fetch ( `${ apiUrl } /orders?filters[category]=2&sort[0]=updatedAt:desc ` , requestOptions )
40
40
. then ( response => response . json ( ) )
41
41
. then ( result => {
42
42
setScholarshipOrders ( result . data )
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const OrderHistory = () => {
32
32
headers : myHeaders ,
33
33
redirect : 'follow'
34
34
}
35
- fetch ( `${ strapiUrl } /orders?filters[category]=7` , requestOptions )
35
+ fetch ( `${ strapiUrl } /orders?filters[category]=7&sort[0]=updatedAt:desc ` , requestOptions )
36
36
. then ( response => response . json ( ) )
37
37
. then ( result => {
38
38
console . log ( 'resluttt' , result )
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ const OrderHistory = () => {
32
32
headers : myHeaders ,
33
33
redirect : 'follow'
34
34
}
35
- fetch ( `${ strapiUrl } /orders?filters[category]=5` , requestOptions )
35
+ fetch ( `${ strapiUrl } /orders?filters[category]=5&sort[0]=updatedAt:desc ` , requestOptions )
36
36
. then ( response => response . json ( ) )
37
37
. then ( result => {
38
38
console . log ( 'resluttt' , result )
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const OrderHistory = () => {
39
39
headers : myHeaders ,
40
40
redirect : 'follow'
41
41
}
42
- fetch ( `${ strapiUrl } /orders?filters[category]=4` , requestOptions )
42
+ fetch ( `${ strapiUrl } /orders?filters[category]=4&sort[0]=updatedAt:desc ` , requestOptions )
43
43
. then ( response => response . json ( ) )
44
44
. then ( result => {
45
45
if ( result . error ) {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const OrderHistory = () => {
34
34
headers : myHeaders ,
35
35
redirect : 'follow'
36
36
}
37
- fetch ( `${ strapiUrl } /orders?filters[category]=6` , requestOptions )
37
+ fetch ( `${ strapiUrl } /orders?filters[category]=6&sort[0]=updatedAt:desc ` , requestOptions )
38
38
. then ( response => response . json ( ) )
39
39
. then ( result => {
40
40
console . log ( 'resluttt' , result )
You can’t perform that action at this time.
0 commit comments