From 6ae21b5b97db1ea3482725b307fe66e9dffd9331 Mon Sep 17 00:00:00 2001 From: Kaitlyn Parkhurst Date: Sun, 20 Nov 2022 03:57:21 -0800 Subject: [PATCH] Add to admin jobs. --- Web/lib/MJB/Web/Controller/Admin.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Web/lib/MJB/Web/Controller/Admin.pm b/Web/lib/MJB/Web/Controller/Admin.pm index 2e5b0a5..bbeb306 100644 --- a/Web/lib/MJB/Web/Controller/Admin.pm +++ b/Web/lib/MJB/Web/Controller/Admin.pm @@ -240,7 +240,8 @@ sub do_domain ( $c ) { if $c->stash->{errors}; if ( $ssl eq 'dns-linode' ) { - $c->minion->enqueue( 'mk_wildcard_ssl', [ $domain->id ], { queue => 'certbot' } ); + my $id = $c->minion->enqueue( 'mk_wildcard_ssl', [ $domain->id ], { queue => 'certbot' } ); + $c->db->admin_jobs->create({ minion_job_id => $id }); } return $c->redirect_success( 'show_admin_domains', "Added $fqdn to domain pool." );