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:
Scott Guymer
2022-12-02 16:48:22 +01:00
parent 8512673a8e
commit 06f6a4f0f1
2 changed files with 6 additions and 1 deletions
@@ -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,
});
}