File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
common/middleware/request-context
taxii/providers/collection Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { RequestContextModel } from "./request-context.model";
33
44export class RequestContext extends RequestContextModel {
55 "x-request-id" : string ;
6- req : Request ;
6+ " req" : Request ;
77}
88
99export { RequestContextModel } from "./request-context.model" ;
Original file line number Diff line number Diff line change @@ -176,15 +176,15 @@ export class HydrateService implements OnModuleInit {
176176 // Find current active collection
177177 const activeCollection = await this . collectionModel
178178 . findOne ( {
179- title : workbenchCollection . stix . name ,
179+ " title" : workbenchCollection . stix . name ,
180180 "_meta.active" : true ,
181181 } )
182182 . exec ( ) ;
183183
184184 // Find any existing inactive collection matching the Workbench version
185185 const matchingVersion = await this . collectionModel
186186 . findOne ( {
187- title : workbenchCollection . stix . name ,
187+ " title" : workbenchCollection . stix . name ,
188188 "_meta.workbenchCollection.version" : workbenchVersion ,
189189 "_meta.active" : false ,
190190 } )
@@ -263,7 +263,7 @@ export class HydrateService implements OnModuleInit {
263263
264264 const orphanedCollections = await this . collectionModel
265265 . find ( {
266- title : { $nin : Array . from ( workbenchTitles ) } ,
266+ " title" : { $nin : Array . from ( workbenchTitles ) } ,
267267 "_meta.active" : true ,
268268 } )
269269 . exec ( ) ;
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export const TaxiiCollectionSchema = SchemaFactory.createForClass(
7272
7373// Required for "Get A Collection" endpoint
7474TaxiiCollectionSchema . index (
75- { id : 1 , "_meta.active" : 1 } ,
75+ { "id" : 1 , "_meta.active" : 1 } ,
7676 {
7777 background : true ,
7878 name : "taxii_collection_lookup" ,
@@ -81,7 +81,7 @@ TaxiiCollectionSchema.index(
8181
8282// Required for collision detection in hydration
8383TaxiiCollectionSchema . index (
84- { title : 1 , "_meta.active" : 1 } ,
84+ { " title" : 1 , "_meta.active" : 1 } ,
8585 {
8686 background : true ,
8787 name : "collection_title_lookup" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export class CollectionRepository {
3232 // Uses taxii_collection_lookup index
3333 const response : TaxiiCollectionEntity = await this . collectionModel
3434 . findOne ( {
35- id : id ,
35+ "id" : id ,
3636 "_meta.active" : true ,
3737 } )
3838 . exec ( ) ;
You can’t perform that action at this time.
0 commit comments