forked from engineering/cloudservices
More bug fixes?
parent
09bec4ad43
commit
f55db08f36
|
@ -182,7 +182,7 @@ export default class CWG_Create extends Command {
|
|||
} catch (error) {
|
||||
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);
|
||||
throw error;
|
||||
return Promise.reject(error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue