Updated client config

This commit is contained in:
Sambo Chea 2022-06-25 18:11:07 +07:00
parent c4e1ddd8dc
commit e925d37e1b
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490

View File

@ -244,11 +244,12 @@ program
} else if (type === "server") { } else if (type === "server") {
config.server = value; config.server = value;
} else if (type === "clientId" || type === "client") { } else if (type === "clientId" || type === "client") {
if (!value || value === "new") { if (!value || value === "" || value === "new") {
config.clientId = generateUUID(); config.clientId = generateUUID();
} else { } else {
config.clientId = value; config.clientId = value;
} }
console.log(`client: ${config.clientId} was set to config!`);
} else if (type === "apiKey" || type === "key") { } else if (type === "apiKey" || type === "key") {
config.apiKey = value; config.apiKey = value;
} else { } else {