Skip to content

Commit

Permalink
do not keep data sources (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
faboweb authored Jan 7, 2020
1 parent 7ca0cae commit 9b3f6a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/apollo.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ const config = require('../config')
const networks = networkList.map(network => new NetworkContainer(network))

function getDataSources(networks) {
const sources = {}
networks.forEach(network => {
sources[network.id] = network.createDataSource()
})

return () => {
const sources = {}
networks.forEach(network => {
sources[network.id] = network.createDataSource()
})

return {
...sources,
LunieDBAPI: new LunieDBAPI()
Expand Down

0 comments on commit 9b3f6a4

Please sign in to comment.