From b4a64fde62c653007096f65d1d99f35812a913b0 Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 30 Oct 2019 12:34:57 +0000 Subject: [PATCH] Stop erroring --- src/commands/cwg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/cwg.ts b/src/commands/cwg.ts index e060788..5cbe6f9 100644 --- a/src/commands/cwg.ts +++ b/src/commands/cwg.ts @@ -132,7 +132,7 @@ export default class CWG extends Command { }); } await fs.unlink(`/etc/nginx/sites-available/${domain.domain}`); - await fs.unlink(`/etc/nginx/sites-enabled/${domain}`); + await fs.unlink(`/etc/nginx/sites-enabled/${domain.domain}`); await this.client.db.Domain.deleteOne({ domain: domain.domain }); await this.client.util.exec('systemctl reload nginx'); edit.edit(`***${this.client.stores.emojis.success} Domain ${domain.domain} with port ${domain.port} has been successfully deleted.***`);