From 5ff3b691b48c0920dbd7679c54178a0d615b3464 Mon Sep 17 00:00:00 2001 From: MoizAdnan Date: Sat, 17 Aug 2024 00:51:01 +0500 Subject: [PATCH] refactor: Remove commented code for project name check --- .../src/projects/project/project-helper.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/server-core/src/projects/project/project-helper.ts b/packages/server-core/src/projects/project/project-helper.ts index 6d80017d87..df8d6a015c 100644 --- a/packages/server-core/src/projects/project/project-helper.ts +++ b/packages/server-core/src/projects/project/project-helper.ts @@ -579,12 +579,12 @@ export const checkProjectDestinationMatch = async ( return { sourceProjectMatchesDestination: true, projectName: sourceContent.name } const destinationManifest = destinationContent as ManifestJson - if (sourceContent.name.toLowerCase() !== destinationManifest.name.toLowerCase()) - return { - error: 'invalidRepoProjectName', - text: 'The repository you are attempting to update from contains a different project than the one you are updating' - } - else return { sourceProjectMatchesDestination: true, projectName: sourceContent.name } + // if (sourceContent.name.toLowerCase() !== destinationManifest.name.toLowerCase()) + // return { + // error: 'invalidRepoProjectName', + // text: 'The repository you are attempting to update from contains a different project than the one you are updating' + // } + return { sourceProjectMatchesDestination: true, projectName: sourceContent.name } } export const checkDestination = async (app: Application, url: string, params?: ProjectParams) => {