forked from .cyb/cyberman
Destroy records when domain is deleted
This commit is contained in:
parent
063f184455
commit
e7266f399c
|
@ -115,6 +115,12 @@ post '/domains/:name/remove' => sub {
|
||||||
"name" => param("name"),
|
"name" => param("name"),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
database->quick_delete(
|
||||||
|
"record",
|
||||||
|
{
|
||||||
|
"domainid" => $domain->{"id"},
|
||||||
|
},
|
||||||
|
);
|
||||||
|
|
||||||
template redir => {
|
template redir => {
|
||||||
redir => "../../domains?removed=$domain->{name}",
|
redir => "../../domains?removed=$domain->{name}",
|
||||||
|
|
Loading…
Reference in New Issue