fix default encryption key file path - Error: Error: Error: ENOENT: no such file or directory, open ''

This commit is contained in:
Henry
2023-07-29 01:46:51 +01:00
parent 1e3f9a8d9b
commit 6378e08f27
2 changed files with 9 additions and 5 deletions
+5 -1
View File
@@ -44,7 +44,8 @@ import {
transformToCredentialEntity,
decryptCredentialData,
clearSessionMemory,
replaceInputsWithConfig
replaceInputsWithConfig,
getEncryptionKey
} from './utils'
import { cloneDeep, omit } from 'lodash'
import { getDataSource } from './DataSource'
@@ -82,6 +83,9 @@ export class App {
// Initialize API keys
await getAPIKeys()
// Initialize encryption key
await getEncryptionKey()
})
.catch((err) => {
logger.error('❌ [server]: Error during Data Source initialization:', err)