notes on where to implement cron (store.createModel() not working)

This commit is contained in:
Tyler Renelle 2012-06-27 22:43:07 -04:00
parent 3a3829bb10
commit 13a8172655

View file

@ -52,6 +52,15 @@ expressApp.all '*', (req) ->
derby.use(require 'racer-db-mongo')
app.createStore
store = app.createStore
listen: server
db: {type: 'Mongo', uri: 'mongodb://localhost/habitrpg'}
# Would implement cron here, using node-cron & https://github.com/codeparty/derby/issues/99#issuecomment-6596460
# But it's not working
# cronJob = require("cron").CronJob
# model = store.createModel()
# new cronJob("* * * * * *", ->
# model.get() #TODO this returns {}, can't seem to access the data
# , null, true, "America/Los_Angeles")