mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat: also send credentials when returning workflow via API (#4458) (no-changelog)
This commit is contained in:
@@ -7,7 +7,7 @@ import {
|
||||
INodeCredentialTestResult,
|
||||
LoggerProxy,
|
||||
} from 'n8n-workflow';
|
||||
import { FindOneOptions, In } from 'typeorm';
|
||||
import { FindManyOptions, FindOneOptions, In } from 'typeorm';
|
||||
|
||||
import {
|
||||
createCredentialsFromCredentialsEntity,
|
||||
@@ -71,6 +71,10 @@ export class CredentialsService {
|
||||
});
|
||||
}
|
||||
|
||||
static async getMany(filter: FindManyOptions<ICredentialsDb>): Promise<ICredentialsDb[]> {
|
||||
return Db.collections.Credentials.find(filter);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve the sharing that matches a user and a credential.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user