feat: support array as arg for CatalogBuilder.addEntityProvider and others

Allows to use e.g.

```
builder.addEntityProvider(getArrayOfProviders());
```

instead of

```
builder.addEntityProvider(...getArrayOfProviders());
```

Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
This commit is contained in:
Patrick Jungermann
2022-05-16 18:27:29 +02:00
parent 361cebfe1b
commit b594679ae3
5 changed files with 49 additions and 14 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ import { Duration } from 'luxon';
const builder = await CatalogBuilder.create(env);
/** ... other processors and/or providers ... */
builder.addEntityProvider(
...GerritEntityProvider.fromConfig(env.config, {
GerritEntityProvider.fromConfig(env.config, {
logger: env.logger,
schedule: env.scheduler.createScheduledTaskRunner({
frequency: { minutes: 30 },