Methods
_getDeleteDate() → {Date}
- Source:
Calculates the date that historicalData should be deleted
Returns:
- Type
- Date
deleteOldData() → {Promise}
- Source:
Deletes data older than timeDifference set in config.json
Returns:
- Type
- Promise
(async) gatherData() → {Promise}
- Source:
Gathers data from the RankMe database for players that have been online since the set time difference
Returns:
- Type
- Promise
(async) intervalFunc()
- Source:
Function that is called in a loop for gathering data
(async) saveDataToDatabase() → {Promise}
- Source:
Saves the gathered data from RankMe table to the historicalData table
Returns:
- Type
- Promise