mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SEARCH-569
- Updated indexVersion
This commit is contained in:
parent
253aee2ac6
commit
26a5b1d22f
@ -117,12 +117,11 @@ function createUser(userId, oldConfig) {
|
||||
function createUserConfigFile(userId, data) {
|
||||
let userData = data;
|
||||
|
||||
if (userData && !userData.indexVersion) {
|
||||
userData.indexVersion = searchConfig.INDEX_VERSION;
|
||||
}
|
||||
|
||||
let createStream = fs.createWriteStream(searchConfig.FOLDERS_CONSTANTS.USER_CONFIG_FILE);
|
||||
if (userData) {
|
||||
if (!userData.indexVersion) {
|
||||
userData.indexVersion = searchConfig.INDEX_VERSION;
|
||||
}
|
||||
try {
|
||||
userData = JSON.stringify(userData);
|
||||
createStream.write(`{"${userId}": ${userData}}`);
|
||||
|
Loading…
Reference in New Issue
Block a user