update credentials

This commit is contained in:
Henry
2023-07-15 19:43:09 +01:00
parent d76a47b894
commit ff755c3d1b
75 changed files with 911 additions and 461 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ export class NodesPool {
const nodeFiles = await this.getFiles(nodesPath)
return Promise.all(
nodeFiles.map(async (file) => {
if (file.endsWith('.js') && !file.endsWith('.credential.js')) {
if (file.endsWith('.js')) {
const nodeModule = await require(file)
if (nodeModule.nodeClass) {
@@ -66,7 +66,7 @@ export class NodesPool {
*/
private async initializeCrdentials() {
const packagePath = getNodeModulesPackagePath('flowise-components')
const nodesPath = path.join(packagePath, 'dist', 'nodes')
const nodesPath = path.join(packagePath, 'dist', 'credentials')
const nodeFiles = await this.getFiles(nodesPath)
return Promise.all(
nodeFiles.map(async (file) => {