File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ export interface ReferenceOptions extends options.EventHandlerOptions {
83
83
/**
84
84
* Specify the handler to trigger on a database reference(s).
85
85
* This value can either be a single reference or a pattern.
86
- * Examples~ '/foo/bar', '/foo/{bar} '
86
+ * Examples: '/foo/bar', '/foo/{bar}'
87
87
*/
88
88
ref : string ;
89
89
/**
90
90
* Specify the handler to trigger on a database instance(s).
91
91
* If present, this value can either be a single instance or a pattern.
92
- * Examples~ 'my-instance-1', '{instance}'
92
+ * Examples: 'my-instance-1', '{instance}'
93
93
*/
94
94
instance ?: string ;
95
95
}
@@ -418,12 +418,9 @@ export function onOperation(
418
418
const specificOpts = options . optionsToEndpoint ( opts ) ;
419
419
420
420
const eventFilters : Record < string , string > = { } ;
421
- const eventFilterPathPatterns : Record < string , string > = { } ;
422
- if ( path . match ( WILDCARD_REGEX ) || path . includes ( '*' ) ) {
423
- eventFilterPathPatterns . ref = path ;
424
- } else {
425
- eventFilters . ref = path ;
426
- }
421
+ const eventFilterPathPatterns : Record < string , string > = {
422
+ ref : path ,
423
+ } ;
427
424
if ( instance . match ( WILDCARD_REGEX ) || instance . includes ( '*' ) ) {
428
425
eventFilterPathPatterns . instance = instance ;
429
426
} else {
You can’t perform that action at this time.
0 commit comments