Destroy records when domain is deleted

This commit is contained in:
Al Beano 2017-08-20 20:57:46 +01:00
parent 063f184455
commit e7266f399c
1 changed files with 6 additions and 0 deletions

View File

@ -115,6 +115,12 @@ post '/domains/:name/remove' => sub {
"name" => param("name"),
},
);
database->quick_delete(
"record",
{
"domainid" => $domain->{"id"},
},
);
template redir => {
redir => "../../domains?removed=$domain->{name}",