diff --git a/packages/server-core/src/projects/project/project-helper.ts b/packages/server-core/src/projects/project/project-helper.ts index b4abd0f034..12d8323bdd 100644 --- a/packages/server-core/src/projects/project/project-helper.ts +++ b/packages/server-core/src/projects/project/project-helper.ts @@ -496,7 +496,7 @@ export const checkProjectDestinationMatch = async ( const projectExists = await app.service(projectPath).find({ query: { name: { - $like: '%' + sourceContent.name + '%' + $like: sourceContent.name } } }) @@ -1468,7 +1468,7 @@ export const updateProject = async ( const existingProjectResult = await app.service(projectPath)._find({ query: { name: { - $like: `%${projectName}%` + $like: projectName } } }) diff --git a/packages/server-core/src/projects/project/project.class.ts b/packages/server-core/src/projects/project/project.class.ts index 869a15989e..20e2bcc736 100644 --- a/packages/server-core/src/projects/project/project.class.ts +++ b/packages/server-core/src/projects/project/project.class.ts @@ -194,7 +194,7 @@ export class ProjectService