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") {
config.server = value;
} else if (type === "clientId" || type === "client") {
if (!value || value === "new") {
if (!value || value === "" || value === "new") {
config.clientId = generateUUID();
} else {
config.clientId = value;
}
console.log(`client: ${config.clientId} was set to config!`);
} else if (type === "apiKey" || type === "key") {
config.apiKey = value;
} else {