From 207c6997ca846718b3002fceaab593101339e9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Delpoux?= Date: Tue, 16 Oct 2018 09:58:07 +0200 Subject: [PATCH] Move 'before' and 'after' to 'activitiesOptions' --- src/gatsby-node.js | 2 -- src/utils/activities.js | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gatsby-node.js b/src/gatsby-node.js index 97512c3..76a3e52 100644 --- a/src/gatsby-node.js +++ b/src/gatsby-node.js @@ -17,8 +17,6 @@ exports.sourceNodes = ( let heartrateMax const activities = await getActivities({ token, - before, - after, options: activitiesOptions, }) diff --git a/src/utils/activities.js b/src/utils/activities.js index 0605298..74a4251 100644 --- a/src/utils/activities.js +++ b/src/utils/activities.js @@ -3,8 +3,8 @@ const {get} = require("./get.js") const getActivities = ({ token, options: { - after, - before, + after = null, + before = null, streamsTypes = [], withComments = false, withKudos = false,