Skip to content

Commit a3e576e

Browse files
committed
use daily snapshot in server.js
1 parent e8e9a09 commit a3e576e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

graphql_server/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ const resolvers = {
1717
latest_nodes_per_community: async (args, context) => {
1818
const db = await context();
1919
const pipeline = require('./mongodb_queries/latest_nodes_per_community.js');
20-
return db.collection('hourly_snapshot').aggregate(pipeline).toArray();
20+
return db.collection('daily_snapshot').aggregate(pipeline).toArray();
2121
},
2222
grouped_nodes_timeseries: async (args, context) => {
2323
const db = await context();
2424
const pipeline = require('./mongodb_queries/grouped_nodes_timeseries.js');
25-
return db.collection('hourly_snapshot').aggregate(pipeline).toArray();
25+
return db.collection('daily_snapshot').aggregate(pipeline).toArray();
2626
},
2727
routing_protocols: async (args, context) => {
2828
const db = await context();
2929
const pipeline = require('./mongodb_queries/routing_protocols.js');
30-
return db.collection('hourly_snapshot').aggregate(pipeline).toArray();
30+
return db.collection('daily_snapshot').aggregate(pipeline).toArray();
3131
}
3232
};
3333

0 commit comments

Comments
 (0)