mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix: Project Viewer always seeing a connection error when testing credentials (#10417)
This commit is contained in:
@@ -127,11 +127,11 @@ export class CredentialsController {
|
||||
const mergedCredentials = deepCopy(credentials);
|
||||
const decryptedData = this.credentialsService.decrypt(storedCredential);
|
||||
|
||||
// When a sharee opens a credential, the fields and the credential data are missing
|
||||
// so the payload will be empty
|
||||
// When a sharee (or project viewer) opens a credential, the fields and the
|
||||
// credential data are missing so the payload will be empty
|
||||
// We need to replace the credential contents with the db version if that's the case
|
||||
// So the credential can be tested properly
|
||||
this.credentialsService.replaceCredentialContentsForSharee(
|
||||
await this.credentialsService.replaceCredentialContentsForSharee(
|
||||
req.user,
|
||||
storedCredential,
|
||||
decryptedData,
|
||||
|
||||
Reference in New Issue
Block a user