File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import baseConfig from './base';
44
55let config = {
66 appEnv : 'dev' , // feel free to remove the appEnv property here
7- apiBase : 'http://localhost:8888/api /' ,
7+ apiBase : 'http://localhost:8888/v0 /' ,
88 crossStorageRules : [
99 {
1010 origin : / l o c a l h o s t : 3 0 3 0 $ / ,
Original file line number Diff line number Diff line change @@ -104,10 +104,13 @@ const users = {
104104 */
105105 fetchUserLikedArtwork : function ( userId = 'current' , filter = { } ) {
106106 let defaultFilter = {
107- // limit: config.perPage
107+ order : 'created DESC'
108108 } ;
109109 let finalFilter = Object . assign ( { } , defaultFilter , filter ) ;
110- return fetchJSON ( `${ modelPrefix } /${ userId } /liked_artwork` , { data : finalFilter } ) ;
110+ return fetchJSON ( `${ modelPrefix } /${ userId } /liked_artwork` , { data : finalFilter } )
111+ . then ( likes => {
112+ return likes . reverse ( ) ;
113+ } ) ;
111114 } ,
112115
113116 /**
You can’t perform that action at this time.
0 commit comments