mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(core): Store SSH key pair for source control in DB settings (#8965)
This commit is contained in:
@@ -39,6 +39,7 @@ import { ApplicationError } from 'n8n-workflow';
|
||||
|
||||
@Service()
|
||||
export class SourceControlService {
|
||||
/** Path to SSH private key in filesystem. */
|
||||
private sshKeyName: string;
|
||||
|
||||
private sshFolder: string;
|
||||
@@ -112,7 +113,7 @@ export class SourceControlService {
|
||||
});
|
||||
await this.sourceControlExportService.deleteRepositoryFolder();
|
||||
if (!options.keepKeyPair) {
|
||||
await this.sourceControlPreferencesService.deleteKeyPairFiles();
|
||||
await this.sourceControlPreferencesService.deleteKeyPair();
|
||||
}
|
||||
this.gitService.resetService();
|
||||
return this.sourceControlPreferencesService.sourceControlPreferences;
|
||||
|
||||
Reference in New Issue
Block a user