wip
This commit is contained in:
@@ -7,7 +7,7 @@ import Note from '../../../../../models/note';
|
||||
/**
|
||||
* Aggregate activity of a user
|
||||
*/
|
||||
module.exports = (params: any) => new Promise(async (res, rej) => {
|
||||
export default (params: any) => new Promise(async (res, rej) => {
|
||||
// Get 'limit' parameter
|
||||
const [limit = 365, limitErr] = $.num.optional.range(1, 365).get(params.limit);
|
||||
if (limitErr) return rej('invalid limit param');
|
||||
|
Reference in New Issue
Block a user