mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
remove console.log on previous
This commit is contained in:
parent
095865ff2e
commit
25d42f078f
2 changed files with 2 additions and 5 deletions
|
|
@ -513,9 +513,8 @@ ready(function(model) {
|
|||
var DAY, daysPassed, lastCron, today;
|
||||
model.setNull('_user.lastCron', new Date());
|
||||
lastCron = new Date(new Date(model.get('_user.lastCron')).toDateString());
|
||||
console.log(lastCron);
|
||||
DAY = 1000 * 60 * 60 * 24;
|
||||
today = new Date(new Date().toDateString());
|
||||
DAY = 1000 * 60 * 60 * 24;
|
||||
daysPassed = Math.floor((today.getTime() - lastCron.getTime()) / DAY);
|
||||
if (daysPassed > 0) {
|
||||
_(daysPassed).times(function() {
|
||||
|
|
|
|||
|
|
@ -386,11 +386,9 @@ ready (model) ->
|
|||
#TODO: remove when cron implemented
|
||||
poormanscron = ->
|
||||
model.setNull('_user.lastCron', new Date())
|
||||
# need to do date calculation, seems it's stored in db as string
|
||||
lastCron = new Date(new Date(model.get('_user.lastCron')).toDateString()) # calculate as midnight
|
||||
console.log lastCron
|
||||
DAY = 1000 * 60 * 60 * 24
|
||||
today = new Date(new Date().toDateString()) # calculate as midnight
|
||||
DAY = 1000 * 60 * 60 * 24
|
||||
daysPassed = Math.floor((today.getTime() - lastCron.getTime()) / DAY)
|
||||
if daysPassed > 0
|
||||
_(daysPassed).times ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue