fix: allow overriding of stackoverflow configuration
Make it possible to override the config when instantiating for more flexibility. Signed-off-by: Scott Guymer <scott.guymer@philips.com>
This commit is contained in:
@@ -95,11 +95,11 @@ export class StackOverflowQuestionsCollatorFactory
|
||||
'https://api.stackexchange.com/2.2';
|
||||
const maxPage = options.maxPage || 100;
|
||||
return new StackOverflowQuestionsCollatorFactory({
|
||||
...options,
|
||||
baseUrl,
|
||||
maxPage,
|
||||
apiKey,
|
||||
apiAccessToken,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user