From a59775b3edeeac8599c7c509f935828249faa720 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 18 Aug 2015 12:11:52 -0400 Subject: [PATCH] Changing sync method to daily from hourly Instead of using the broken hourly partial-sync, we'll just do an exhaustive initial sync daily at midnight. It sucks to do this against npm, but their API broke and I've not received a response in a week. re: https://github.com/npm/npm-registry-couchapp/issues/242 --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 4e24eb7..46a9b14 100644 --- a/index.js +++ b/index.js @@ -22,7 +22,9 @@ require('./lib/routes')(app, controllers); winston.info('NodeBB Package Manager - Initializing'); -new cronJob('0 * * * *', packages.registry.sync, null, true); +new cronJob('0 0 * * *', function() { + packages.registry.sync(true); // Sync daily, instead +}, null, true); app.listen(process.env.PORT || 3000); winston.info('NodeBB Package Manager - Ready');