Skip to content

Commit 5f2615a

Browse files
committed
chore: run lint:fix
1 parent 1a76145 commit 5f2615a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/common/middleware/request-context/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { RequestContextModel } from "./request-context.model";
33

44
export class RequestContext extends RequestContextModel {
55
"x-request-id": string;
6-
req: Request;
6+
"req": Request;
77
}
88

99
export { RequestContextModel } from "./request-context.model";

src/hydrate/hydrate.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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();

src/hydrate/schema/taxii-collection.schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const TaxiiCollectionSchema = SchemaFactory.createForClass(
7272

7373
// Required for "Get A Collection" endpoint
7474
TaxiiCollectionSchema.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
8383
TaxiiCollectionSchema.index(
84-
{ title: 1, "_meta.active": 1 },
84+
{ "title": 1, "_meta.active": 1 },
8585
{
8686
background: true,
8787
name: "collection_title_lookup",

src/taxii/providers/collection/collection.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)