var
  schedule = require('node-schedule'),
  tweet = require('./lib/tweet'),
  syncTask = require('./tasks/sync');

// Tasks to run on startup
syncTask.run();

// Update entries every 30 minutes and boot
schedule.scheduleJob('0,30 * * * *', function () {
  syncTask.run();
});

// Events
syncTask.on('new component', function (model) {
  tweet(model, function (err, reply) {
    if (err) { }
  });
});

var
  schedule = require('node-schedule'),
  tweet = require('./tweet'),
  syncTask = require('./tasks/sync');

// Tasks to run on startup
syncTask.run();

// Update entries every 30 minutes and boot
schedule.scheduleJob('0,30 * * * *', function () {
  syncTask.run();
});

// Events
syncTask.on('new component', function (model) {
  tweet(model, function (err, reply) {
    if (err) { }
  });
});

Fix tweet hook path change
Fix tweet hook path change
