Skip to content

Commit 2dba2a5

Browse files
committed
fix: add events option to ElasticsearchServiceOptions and restore test configuration
- Add events?: string[] to ElasticsearchServiceOptions interface - Restore events: ['testing'] in test service configuration - Fixes .events adapter test - 177 tests now passing (up from 176)
1 parent 6816244 commit 2dba2a5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ export interface ElasticsearchServiceOptions {
264264
filters?: Record<string, (val: unknown) => unknown>
265265
operators?: string[]
266266
security?: SecurityConfig
267+
events?: string[]
267268
}
268269

269270
export interface ElasticsearchServiceParams extends AdapterParams {

test/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ describe('Elasticsearch Service', () => {
2020
`/${serviceName}`,
2121
service({
2222
Model: db.getClient(),
23+
events: ['testing'],
2324
id: 'id',
2425
esVersion,
2526
elasticsearch: db.getServiceConfig(serviceName),

0 commit comments

Comments
 (0)