From f1165f24aa062ae9a6833f435f972e5ad9797ea6 Mon Sep 17 00:00:00 2001 From: zhangtao25 Date: Mon, 30 Dec 2024 19:09:58 +0800 Subject: [PATCH] chore: daily development --- packages/canyon-backend/src/codechange/codechange.service.ts | 4 ++-- packages/canyon-backend/src/common/suffix.ts | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 packages/canyon-backend/src/common/suffix.ts 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"], -};