Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
only run newsletter in production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
SachaG committed Oct 13, 2015
1 parent 1b9d358 commit 5b76052
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/telescope-newsletter/lib/server/cron.js
Expand Up @@ -41,7 +41,10 @@ var addJob = function () {
return getSchedule(parser);
},
job: function() {
scheduleNextCampaign();
// only schedule newsletter campaigns in production
if (process.env.NODE_ENV === "production") {
scheduleNextCampaign();
}
}
});
};
Expand Down

0 comments on commit 5b76052

Please sign in to comment.