mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
refactor api.dayMapping to DAY_MAPPING const, not exposed on api
This commit is contained in:
16
common/script/cron.js
Normal file
16
common/script/cron.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
------------------------------------------------------
|
||||
Cron and time / day functions
|
||||
------------------------------------------------------
|
||||
*/
|
||||
|
||||
export const DAY_MAPPING = {
|
||||
0: 'su',
|
||||
1: 'm',
|
||||
2: 't',
|
||||
3: 'w',
|
||||
4: 'th',
|
||||
5: 'f',
|
||||
6: 's',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user