habitica/website/server/middlewares
Zobdek addee73e4d Set _cronSignature to current time instead of uuid (#8565)
* Changes made to satisfy #8163. _cronSignature is set to current time when cron starts so that if cron fails to set _cronSignature to 'NOT_RUNNING' for any reason a new cron can be started after a set amount of time (1 hour for now)

* fix lint errors

* changed cronTimeout to CRON_TIMEOUT

* Changed variable names and comments to be more clear

* Fixed stub for failing test so that it matches new mongo db update call signature

* First pass at unit tests, error messages and some other things need to be determined

* Fixed a tab that snuck in :/

* Fixed lint issues (issues with spaces)

* Fix infix operator spacing

* Created constant. Make sure cron failure test verifies that it is failing for the right reason

* Fixed lint errors

* Removed no longer used uuid import
2017-10-25 15:29:16 -05:00
..
analytics.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
auth.js Remove email addresses from translatable strings (#8448) 2017-03-27 18:03:31 +02:00
cors.js fix(api): Allow x-client to be set in cors middleware (#8117) 2016-10-10 17:35:00 -05:00
cron.js Set _cronSignature to current time instead of uuid (#8565) 2017-10-25 15:29:16 -05:00
domain.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
ensureAccessRight.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
ensureDevelpmentMode.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
errorHandler.js do not send password to loggly (#8887) 2017-07-20 15:07:38 +02:00
index.js Client: i18n (#8972) 2017-08-22 18:26:53 +02:00
language.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
maintenanceMode.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
notFound.js fix hard links for new client (#8986) 2017-08-24 18:19:31 +02:00
redirects.js Redirection fixes (#8592) 2017-03-23 10:25:58 -05:00
response.js Force refresh is server version is updated (#9239) 2017-10-23 12:58:11 -05:00
setupBody.js Deprecate API v2 (was Revert "Revert "Deprecate API v2"") (#7802) 2016-08-01 22:36:10 +02:00
static.js Old Client Cleanup (#9141) 2017-10-12 16:44:28 +02:00
v1.js Upgrade ESLint to v3 (#8299) 2016-12-20 22:31:36 +01:00
v2.js Upgrade ESLint to v3 (#8299) 2016-12-20 22:31:36 +01:00
v3.js Upgrade ESLint to v3 (#8299) 2016-12-20 22:31:36 +01:00