Fixed cert parsing again again

merge-requests/1/merge
Bsian 2019-10-28 22:06:56 +00:00
parent 6a154cc4b9
commit bd14446390
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export default class CWG extends Command {
if (!account) return message.channel.createMessage(`${this.client.stores.emojis.error} Cannot locate account, please try again.`);
try {
if (args[4] && !args[5]) return message.channel.createMessage(`${this.client.stores.emojis.error} x509 Certificate key required`);
let certs: { cert?: string, key?: string }; if (args[5]) certs = { cert: args[4], key: args[5] }; else certs = null;
let certs: { cert?: string, key?: string }; if (args[5]) certs = { cert: args[4], key: args[5] };
const domain = await this.createDomain(account, args[2], Number(args[3]), certs);
const embed = new RichEmbed();
embed.setTitle('Domain Creation');