Skip to content

Commit

Permalink
style: made locs shorter in demo server code so so it can still fit o…
Browse files Browse the repository at this point in the history
…n screen when zoomed in
  • Loading branch information
hgwood committed Mar 24, 2016
1 parent bb542a9 commit 009fcaf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ app.use("/falcorception.json", falcorExpress.dataSourceRoute(function () {
.zipObject(pathSet.indices)
.mapValues(_.propertyOf(apis))
.pickBy(_.identity)
.map((api, index) => ({path: ["apis", index], value: {$type: "ref", value: ["apisById", api.id]}}))
.map((api, index) => ({
path: ["apis", index],
value: {$type: "ref", value: ["apisById", api.id]}}))
.value()
},
},
Expand All @@ -47,7 +49,9 @@ app.use("/falcorception.json", falcorExpress.dataSourceRoute(function () {
const data = rw()
return _(pathSet.ids)
.map(_.propertyOf(data.apisById))
.flatMap(api => _.map(pathSet.props, prop => ({path: ["apisById", api.id, prop], value: api[prop]})))
.flatMap(api => _.map(pathSet.props, prop => ({
path: ["apisById", api.id, prop],
value: api[prop]})))
.value()
},
set(updates) {
Expand Down

0 comments on commit 009fcaf

Please sign in to comment.