Skip to content

Commit

Permalink
1.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryHengZJ committed Dec 20, 2023
1 parent 891f14d commit e702024
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flowise-test",
"version": "1.4.7",
"version": "1.4.9",
"private": true,
"homepage": "https://flowiseai.com",
"workspaces": [
Expand Down
11 changes: 1 addition & 10 deletions packages/components/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,16 +371,7 @@ export const getEnvironmentVariable = (name: string): string | undefined => {
* @returns {string}
*/
const getEncryptionKeyFilePath = (): string => {
const checkPaths = [
path.join(__dirname, '..', '..', 'encryption.key'),
path.join(__dirname, '..', '..', 'server', 'encryption.key'),
path.join(__dirname, '..', '..', '..', 'encryption.key'),
path.join(__dirname, '..', '..', '..', 'server', 'encryption.key'),
path.join(__dirname, '..', '..', '..', '..', 'encryption.key'),
path.join(__dirname, '..', '..', '..', '..', 'server', 'encryption.key'),
path.join(__dirname, '..', '..', '..', '..', '..', 'encryption.key'),
path.join(__dirname, '..', '..', '..', '..', '..', 'server', 'encryption.key')
]
const checkPaths = [path.join(getUserHome(), '.flowise', 'encryption.key')]
for (const checkPath of checkPaths) {
if (fs.existsSync(checkPath)) {
return checkPath
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flowise-test",
"version": "1.4.7",
"version": "1.4.9",
"description": "Flowiseai Server",
"main": "dist/index",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ export const isFlowValidForStream = (reactFlowNodes: IReactFlowNode[], endingNod
export const getEncryptionKeyPath = (): string => {
return process.env.SECRETKEY_PATH
? path.join(process.env.SECRETKEY_PATH, 'encryption.key')
: path.join(__dirname, '..', '..', 'encryption.key')
: path.join(getUserHome(), '.flowise', 'encryption.key')
}

/**
Expand Down

0 comments on commit e702024

Please sign in to comment.