Skip to content

Commit

Permalink
fix(repoService): fix failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore03109 committed Oct 17, 2023
1 parent a8afd04 commit 206022e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 2 additions & 3 deletions src/services/db/GitFileSystemService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import GitFileSystemNeedsRollbackError from "@errors/GitFileSystemNeedsRollbackE
import { NotFoundError } from "@errors/NotFoundError"

import {
EFS_VOL_PATH_STAGING,
EFS_VOL_PATH_STAGING_LITE,
ISOMER_GITHUB_ORG_NAME,
STAGING_BRANCH,
STAGING_LITE_BRANCH,
Expand All @@ -45,9 +47,6 @@ import type {
import type { IsomerCommitMessage } from "@root/types/github"
import { ALLOWED_FILE_EXTENSIONS } from "@root/utils/file-upload-utils"

const EFS_VOL_PATH_STAGING = config.get("aws.efs.volPathStaging")
const EFS_VOL_PATH_STAGING_LITE = config.get("aws.efs.volPathStagingLite")

export default class GitFileSystemService {
private readonly git: SimpleGit

Expand Down
10 changes: 7 additions & 3 deletions src/services/db/__tests__/GitFileSystemService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ import GitFileSystemError from "@errors/GitFileSystemError"
import GitFileSystemNeedsRollbackError from "@errors/GitFileSystemNeedsRollbackError"
import { NotFoundError } from "@errors/NotFoundError"

import { ISOMER_GITHUB_ORG_NAME } from "@constants/constants"
import {
EFS_VOL_PATH_STAGING,
EFS_VOL_PATH_STAGING_LITE,
ISOMER_GITHUB_ORG_NAME,
} from "@constants/constants"

import {
MOCK_GITHUB_FILENAME_ALPHA_ONE,
Expand Down Expand Up @@ -51,8 +55,8 @@ const dirTree = {
describe("GitFileSystemService", () => {
beforeEach(() => {
mockFs({
[config.get("aws.efs.volPathStaging")]: dirTree,
[config.get("aws.efs.volPathStagingLite")]: dirTree,
[`${EFS_VOL_PATH_STAGING}`]: dirTree,
[`${EFS_VOL_PATH_STAGING_LITE}`]: dirTree,
})
})

Expand Down
2 changes: 0 additions & 2 deletions src/services/identity/ReposService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const SITE_CREATION_BASE_REPO_URL =
const ISOMER_GITHUB_ORGANIZATION_NAME = "isomerpages"
const ISOMER_GITHUB_EMAIL = "[email protected]"

const EFS_VOL_PATH = config.get("aws.efs.volPathStaging")

interface ReposServiceProps {
repository: ModelStatic<Repo>
simpleGit: SimpleGit
Expand Down

0 comments on commit 206022e

Please sign in to comment.