diff --git a/packages/canyon-backend/src/codechange/codechange.service.ts b/packages/canyon-backend/src/codechange/codechange.service.ts index 9ccefe18..9964b062 100644 --- a/packages/canyon-backend/src/codechange/codechange.service.ts +++ b/packages/canyon-backend/src/codechange/codechange.service.ts @@ -24,7 +24,7 @@ export class CodechangeService { where: { compareTarget, sha: sha, - path: filepath.replace("~/", ""), + path: filepath, }, }) .then((r) => { @@ -36,7 +36,7 @@ export class CodechangeService { projectID: "", compareTarget: compareTarget, sha: sha, - path: filepath.replace("~/", ""), + path: filepath, additions: [], deletions: [], }; diff --git a/packages/canyon-backend/src/common/suffix.ts b/packages/canyon-backend/src/common/suffix.ts deleted file mode 100644 index dec40890..00000000 --- a/packages/canyon-backend/src/common/suffix.ts +++ /dev/null @@ -1,4 +0,0 @@ -export const suffixMap = { - Java: ["java", "kt", "groovy"], - JavaScript: ["js", "jsx", "ts", "tsx", "vue"], -};