fix emulate next day button
This commit is contained in:
@@ -308,7 +308,7 @@ ready (model) ->
|
||||
model.set "_view.addFriendError", "User with id #{friendId} not found."
|
||||
|
||||
exports.emulateNextDay = ->
|
||||
yesterday = moment().subtract('days', 1).toString()
|
||||
yesterday = +moment().subtract('days', 1).toDate()
|
||||
user.set 'lastCron', yesterday
|
||||
window.location.reload()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user