0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Added jsdoc to MembersStats class

no issue
This commit is contained in:
Naz 2021-01-14 12:59:10 +13:00
parent 4e497fb9d1
commit 105bc6cff3

View file

@ -3,6 +3,12 @@ const Promise = require('bluebird');
const dateFormat = 'YYYY-MM-DD HH:mm:ss';
class MembersStats {
/**
* @param {Object} config
* @param {Object} config.db - an instance holding knex connection to the database
* @param {Object} config.settingsCache - an instance of the Ghost Settings Cache
* @param {Boolean} config.isSQLite - flag identifying if storage is connected to SQLite
*/
constructor({db, settingsCache, isSQLite}) {
this._db = db;
this._settingsCache = settingsCache;