mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix: Issue with credentials and workflows not being matched correctly due to incorrect typing (#5011)
* fix: Always return ids as strings
This commit is contained in:
@@ -35,7 +35,13 @@ EECredentialsController.get(
|
||||
});
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/unbound-method
|
||||
return allCredentials.map(EECredentials.addOwnerAndSharings);
|
||||
return allCredentials
|
||||
.map((credential: CredentialsEntity & CredentialWithSharings) =>
|
||||
EECredentials.addOwnerAndSharings(credential),
|
||||
)
|
||||
.map(
|
||||
(credential): CredentialWithSharings => ({ ...credential, id: credential.id.toString() }),
|
||||
);
|
||||
} catch (error) {
|
||||
LoggerProxy.error('Request to list credentials failed', error as Error);
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user