Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
elishowk committed Jul 28, 2023
1 parent 05f9456 commit 5656a3e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
30 changes: 25 additions & 5 deletions back/src/bsds/indexation/__tests__/bulkIndexBsds.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ describe("indexAllBsdTypeSync", () => {
formFactory({ ownerId: user.id })
]);

await indexAllBsdTypeSync({ bsdName: "bsdd", index: index.alias, indexConfig: index });
await indexAllBsdTypeSync({
bsdName: "bsdd",
index: index.alias,
indexConfig: index
});
await refreshElasticSearch();

const { body }: ApiResponse<SearchResponse<BsdElastic>> =
Expand All @@ -94,7 +98,11 @@ describe("indexAllBsdTypeSync", () => {
bsdaFactory({})
]);

await indexAllBsdTypeSync({ bsdName: "bsda", index: index.alias, indexConfig: index });
await indexAllBsdTypeSync({
bsdName: "bsda",
index: index.alias,
indexConfig: index
});
await refreshElasticSearch();

const { body }: ApiResponse<SearchResponse<BsdElastic>> =
Expand All @@ -118,7 +126,11 @@ describe("indexAllBsdTypeSync", () => {
bsdasriFactory({})
]);

await indexAllBsdTypeSync({ bsdName: "bsdasri", index: index.alias, indexConfig: index });
await indexAllBsdTypeSync({
bsdName: "bsdasri",
index: index.alias,
indexConfig: index
});
await refreshElasticSearch();

const { body }: ApiResponse<SearchResponse<BsdElastic>> =
Expand All @@ -142,7 +154,11 @@ describe("indexAllBsdTypeSync", () => {
createBsff({})
]);

await indexAllBsdTypeSync({ bsdName: "bsff", index: index.alias, indexConfig: index });
await indexAllBsdTypeSync({
bsdName: "bsff",
index: index.alias,
indexConfig: index
});
await refreshElasticSearch();

const { body }: ApiResponse<SearchResponse<BsdElastic>> =
Expand All @@ -165,7 +181,11 @@ describe("indexAllBsdTypeSync", () => {
bsvhuFactory({}),
bsvhuFactory({})
]);
await indexAllBsdTypeSync({ bsdName: "bsvhu", index: index.alias, indexConfig: index });
await indexAllBsdTypeSync({
bsdName: "bsvhu",
index: index.alias,
indexConfig: index
});
await refreshElasticSearch();

const { body }: ApiResponse<SearchResponse<BsdElastic>> =
Expand Down
1 change: 0 additions & 1 deletion back/src/bsds/indexation/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { BsdIndexationConfig } from "../../common/elastic";


export type IndexElasticSearchOpts = {
index?: BsdIndexationConfig;
force?: boolean;
Expand Down
4 changes: 1 addition & 3 deletions back/src/queue/jobs/indexAllBsds.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import axios from "axios";
import { Job } from "bull";
import { BsdIndexationConfig } from "../../common/elastic";
import {
findManyAndIndexBsds
} from "../../bsds/indexation/bulkIndexBsds";
import { findManyAndIndexBsds } from "../../bsds/indexation/bulkIndexBsds";
import { FindManyAndIndexBsdsFnSignature } from "../../bsds/indexation/types";
import { reindexAllBsdsInBulk } from "../../bsds/indexation";
import logger from "../../logging/logger";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { resetDatabase } from "../../../../integration-tests/helper";
import { formFactory, userFactory } from "../../../__tests__/factories";
import {
INDEX_ALIAS_NAME_SEPARATOR
} from "../../../bsds/indexation/bulkIndexBsds";
import { INDEX_ALIAS_NAME_SEPARATOR } from "../../../bsds/indexation/bulkIndexBsds";
import { reindexAllBsdsInBulk } from "../../../bsds/indexation";
import {
BsdIndexationConfig,
Expand Down

0 comments on commit 5656a3e

Please sign in to comment.