From 9b3f6a4824a4aca6a34a2710e5791d0ba5249b53 Mon Sep 17 00:00:00 2001 From: Fabian Date: Tue, 7 Jan 2020 15:34:23 -0500 Subject: [PATCH] do not keep data sources (#251) --- lib/apollo.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/apollo.js b/lib/apollo.js index 20203a9282..3376ae627a 100644 --- a/lib/apollo.js +++ b/lib/apollo.js @@ -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()