diff --git a/fixtures/worlds.json b/fixtures/worlds.json index 35a157b..7f123c6 100644 --- a/fixtures/worlds.json +++ b/fixtures/worlds.json @@ -4,8 +4,6 @@ "title": "Smarter Artist Summit", "slug": "smarter-artist-summit", - "colour": "white", - "owners": [ "EJA_S0Cie" ], diff --git a/src/falcor/worlds/index.js b/src/falcor/worlds/index.js index 2fc114a..c0cb0b4 100644 --- a/src/falcor/worlds/index.js +++ b/src/falcor/worlds/index.js @@ -30,14 +30,14 @@ export default ( db, req, res ) => { * Properties */ { - route: 'worldsById[{keys:ids}]["_id", "title", "slug", "colour"]', + route: 'worldsById[{keys:ids}]["_id", "title", "slug"]', get: pathSet => db ::getWorlds( pathSet.ids, user ) ::toPathValues( ( i, f ) => [ 'worldsById', i._id, f ], pathSet[ 2 ] ) , }, { - route: 'worldsById[{keys:ids}]["title", "slug", "colour"]', + route: 'worldsById[{keys:ids}]["title", "slug"]', set: pathSet => db ::setWorldProps( pathSet.worldsById, user ) ::toPathValues( ( i, f ) => [ 'worldsById', i._id, f ], i => keys( pathSet.worldsById[ i._id ] ) )