Refactored post retrieval so limit is applied per-user and ignores directly requested posts, and to start utilizing async/await.
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ module.exports = yargs.command('npm start -- --user <username>').option('users',
|
||||
describe: 'Reddit post IDs to fetch',
|
||||
type: 'array'
|
||||
}).option('limit', {
|
||||
describe: 'Maximum amount of posts to fetch after filtering out ignored, cross- and reposts',
|
||||
describe: 'Maximum amount of posts to fetch per supplied user (!), after filtering out ignored, cross- and reposts',
|
||||
type: 'number',
|
||||
default: config.fetch.limit
|
||||
}).option('sort', {
|
||||
|
||||
Reference in New Issue
Block a user