@@ -3729,27 +3729,27 @@ if (process.env.DB !== 'mysql_legacy') {
3729
3729
{
3730
3730
user_id : user0 . id ,
3731
3731
title : 'Adonis 101' ,
3732
- created_at : now ,
3732
+ created_at : now . toISO ( ) ,
3733
3733
} ,
3734
3734
{
3735
3735
user_id : user0 . id ,
3736
3736
title : 'Adonis 102' ,
3737
- created_at : now . plus ( { seconds : 1 } ) ,
3737
+ created_at : now . plus ( { seconds : 1 } ) . toISO ( ) ,
3738
3738
} ,
3739
3739
{
3740
3740
user_id : user0 . id ,
3741
3741
title : 'Adonis 103' ,
3742
- created_at : now . plus ( { seconds : 2 } ) ,
3742
+ created_at : now . plus ( { seconds : 2 } ) . toISO ( ) ,
3743
3743
} ,
3744
3744
{
3745
3745
user_id : user0 . id ,
3746
3746
title : 'Adonis 104' ,
3747
- created_at : now . plus ( { seconds : 3 } ) ,
3747
+ created_at : now . plus ( { seconds : 3 } ) . toISO ( ) ,
3748
3748
} ,
3749
3749
{
3750
3750
user_id : user0 . id ,
3751
3751
title : 'Adonis 105' ,
3752
- created_at : now . plus ( { seconds : 4 } ) ,
3752
+ created_at : now . plus ( { seconds : 4 } ) . toISO ( ) ,
3753
3753
} ,
3754
3754
] )
3755
3755
@@ -3763,34 +3763,34 @@ if (process.env.DB !== 'mysql_legacy') {
3763
3763
{
3764
3764
user_id : user1 . id ,
3765
3765
title : 'Lucid 101' ,
3766
- created_at : now ,
3766
+ created_at : now . toISO ( ) ,
3767
3767
} ,
3768
3768
{
3769
3769
user_id : user1 . id ,
3770
3770
title : 'Lucid 102' ,
3771
- created_at : now . plus ( { seconds : 1 } ) ,
3771
+ created_at : now . plus ( { seconds : 1 } ) . toISO ( ) ,
3772
3772
} ,
3773
3773
{
3774
3774
user_id : user1 . id ,
3775
3775
title : 'Lucid 103' ,
3776
- created_at : now . plus ( { seconds : 2 } ) ,
3776
+ created_at : now . plus ( { seconds : 2 } ) . toISO ( ) ,
3777
3777
} ,
3778
3778
{
3779
3779
user_id : user1 . id ,
3780
3780
title : 'Lucid 104' ,
3781
- created_at : now . plus ( { seconds : 3 } ) ,
3781
+ created_at : now . plus ( { seconds : 3 } ) . toISO ( ) ,
3782
3782
} ,
3783
3783
{
3784
3784
user_id : user1 . id ,
3785
3785
title : 'Lucid 105' ,
3786
- created_at : now . plus ( { seconds : 4 } ) ,
3786
+ created_at : now . plus ( { seconds : 4 } ) . toISO ( ) ,
3787
3787
} ,
3788
3788
] )
3789
3789
3790
3790
User . boot ( )
3791
3791
3792
3792
const users = await User . query ( ) . preload ( 'posts' , ( query ) => {
3793
- query . groupLimit ( 2 ) . groupOrderBy ( 'created_at' , 'desc ' )
3793
+ query . groupLimit ( 2 ) . groupOrderBy ( 'created_at' , 'asc ' )
3794
3794
} )
3795
3795
assert . lengthOf ( users , 2 )
3796
3796
0 commit comments