mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
refactor api.startOfWeek to a cron.js function not exposed on api
This commit is contained in:
@@ -73,15 +73,6 @@ api.planGemLimits = {
|
||||
------------------------------------------------------
|
||||
*/
|
||||
|
||||
api.startOfWeek = api.startOfWeek = function(options) {
|
||||
var o;
|
||||
if (options == null) {
|
||||
options = {};
|
||||
}
|
||||
o = sanitizeOptions(options);
|
||||
return moment(o.now).startOf('week');
|
||||
};
|
||||
|
||||
api.startOfDay = function(options) {
|
||||
var dayStart, o;
|
||||
if (options == null) {
|
||||
|
||||
Reference in New Issue
Block a user