mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-08-29 14:50:36 +02:00
feat(core): Allow transferring folder to project root with delete operation (no-changelog) (#14074)
This commit is contained in:
@@ -138,7 +138,9 @@ export class FolderService {
|
||||
throw new UserError('Cannot transfer folder contents to the folder being deleted');
|
||||
}
|
||||
|
||||
await this.findFolderInProjectOrFail(transferToFolderId, projectId);
|
||||
if (transferToFolderId !== PROJECT_ROOT) {
|
||||
await this.findFolderInProjectOrFail(transferToFolderId, projectId);
|
||||
}
|
||||
|
||||
return await this.folderRepository.manager.transaction(async (tx) => {
|
||||
await this.folderRepository.moveAllToFolder(folderId, transferToFolderId, tx);
|
||||
|
||||
Reference in New Issue
Block a user