add "emulate next day" debugging button

This commit is contained in:
Tyler Renelle
2013-02-01 14:05:52 -05:00
parent 53d5ae51c5
commit 86ea99c2dc
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -307,3 +307,8 @@ ready (model) ->
else
model.set "_view.addFriendError", "User with id #{friendId} not found."
exports.emulateNextDay = ->
yesterday = moment().subtract('days', 1).toString()
user.set 'lastCron', yesterday
window.location.reload()