1
0
Fork 0

More bug fixes?

refactor/models
Bsian 2020-03-29 22:51:17 +01:00
parent 09bec4ad43
commit f55db08f36
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ export default class CWG_Create extends Command {
} catch (error) { } catch (error) {
const tasks = [fs.unlink(`/etc/nginx/sites-enabled/${domain}`), fs.unlink(`/etc/nginx/sites-available/${domain}`), this.client.db.Domain.deleteMany({ domain })]; const tasks = [fs.unlink(`/etc/nginx/sites-enabled/${domain}`), fs.unlink(`/etc/nginx/sites-available/${domain}`), this.client.db.Domain.deleteMany({ domain })];
await Promise.allSettled(tasks); await Promise.allSettled(tasks);
throw error; return Promise.reject(error);
} }
} }