fixes
parent
4c3d8f9194
commit
f41a0525d6
|
@ -25,7 +25,7 @@ export default class X509_Upload extends Command {
|
||||||
try {
|
try {
|
||||||
await axios.post('https://certapi.libraryofcode.org/parse', x509);
|
await axios.post('https://certapi.libraryofcode.org/parse', x509);
|
||||||
} catch {
|
} catch {
|
||||||
this.error(message.channel, 'Unable to parse your x509 certificate.');
|
return this.error(message.channel, 'Unable to parse your x509 certificate.');
|
||||||
} finally {
|
} finally {
|
||||||
await this.client.db.Member.updateOne({ userID: message.author.id }, { x509 });
|
await this.client.db.Member.updateOne({ userID: message.author.id }, { x509 });
|
||||||
this.success(message.channel, 'x509 certificate successfully uploaded to your account.');
|
this.success(message.channel, 'x509 certificate successfully uploaded to your account.');
|
||||||
|
|
Loading…
Reference in New Issue