mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-30 12:43:59 -06:00
SEARCH-440
- Removed the hard-coded version in crypto
This commit is contained in:
parent
3312e49e75
commit
bf537d3902
@ -13,10 +13,9 @@ const DUMP_PATH = isDevEnv ? path.join(__dirname, '..', '..') : searchConfig.FOL
|
||||
class Crypto {
|
||||
|
||||
constructor(userId, key) {
|
||||
let INDEX_VERSION = 'v1';
|
||||
this.indexDataFolder = searchConfig.FOLDERS_CONSTANTS.PREFIX_NAME_PATH +
|
||||
'_' + userId + '_' + searchConfig.INDEX_VERSION;
|
||||
this.permanentIndexName = searchConfig.FOLDERS_CONSTANTS.PREFIX_NAME + '_' + userId + '_' + INDEX_VERSION;
|
||||
this.permanentIndexName = searchConfig.FOLDERS_CONSTANTS.PREFIX_NAME + '_' + userId + '_' + searchConfig.INDEX_VERSION;
|
||||
this.dump = DUMP_PATH;
|
||||
this.key = key;
|
||||
this.encryptedIndex = `${DUMP_PATH}/${this.permanentIndexName}.enc`;
|
||||
|
Loading…
Reference in New Issue
Block a user