Major updates to core
This commit is contained in:
@@ -17,8 +17,8 @@ class Options {
|
||||
* @param updatedId The updated ID assigned to the node
|
||||
*/
|
||||
export function updateId (updatedId) {
|
||||
updateConfig('CLIENT_ID', updatedId);
|
||||
process.env.CLIENT_ID = updatedId;
|
||||
updateConfig('CLIENT_NUID', updatedId);
|
||||
process.env.CLIENT_NUID = updatedId;
|
||||
console.log("Updated ID to: ", updatedId);
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ export function updateClientConfig (runningConfig, newConfigObject) {
|
||||
if (configKeys.includes("id")) {
|
||||
if (runningConfig.id != newConfigObject.id) {
|
||||
this.updateId(newConfigObject.id);
|
||||
updatedKeys.push({ 'CLIENT_ID': newConfigObject.id });
|
||||
updatedKeys.push({ 'CLIENT_NUID': newConfigObject.id });
|
||||
}
|
||||
}
|
||||
if (configKeys.includes("name")) {
|
||||
|
||||
Reference in New Issue
Block a user