feat: also send credentials when returning workflow via API (#4458) (no-changelog)

This commit is contained in:
Omar Ajoue
2022-10-31 11:08:25 -03:00
committed by GitHub
parent ec5ef0c50d
commit 7563d450f9
6 changed files with 184 additions and 10 deletions

View File

@@ -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.
*/