File tree 2 files changed +8
-10
lines changed 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -200,16 +200,15 @@ export class BlockService extends BaseService<
200
200
// This ensures that only blocks with valid matches are kept, and blocks with no matches are excluded,
201
201
// all while iterating through the list only once.
202
202
203
- const matchesWithPatterns = filteredBlocks . reduce <
204
- NlpPatternMatchResult [ ]
205
- > ( ( acc , b ) => {
206
- const matchedPattern = this . matchNLP ( nlp , b ) ;
203
+ const matchesWithPatterns : NlpPatternMatchResult [ ] =
204
+ filteredBlocks . reduce < NlpPatternMatchResult [ ] > ( ( acc , b ) => {
205
+ const matchedPattern = this . matchNLP ( nlp , b ) ;
207
206
208
- if ( matchedPattern && matchedPattern . length > 0 ) {
209
- acc . push ( { block : b , matchedPattern } ) ;
210
- }
211
- return acc ;
212
- } , [ ] ) ;
207
+ if ( matchedPattern && matchedPattern . length > 0 ) {
208
+ acc . push ( { block : b , matchedPattern } ) ;
209
+ }
210
+ return acc ;
211
+ } , [ ] ) ;
213
212
214
213
// Log the matched patterns
215
214
this . logger . debug (
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ import { NlpSampleService } from './services/nlp-sample.service';
31
31
import { NlpValueService } from './services/nlp-value.service' ;
32
32
import { NlpService } from './services/nlp.service' ;
33
33
34
- // @Global ()
35
34
@Module ( {
36
35
imports : [
37
36
MongooseModule . forFeature ( [
You can’t perform that action at this time.
0 commit comments