From 7c9ed6b919d4113d5ecf9e189149f3edb062778c Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Fri, 30 Apr 2021 10:43:21 -0700 Subject: [PATCH] Project: fix DELETE route This appears to have been broken in ac3e8a4a5920797ce04f1fbc0fe8beb086a2472a, which removed the `jobsetevals` column from the Projects schema, but didn't update the Controller accordingly. Fixes the test added in the previous commit. --- src/lib/Hydra/Controller/Project.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Hydra/Controller/Project.pm b/src/lib/Hydra/Controller/Project.pm index f02dcc34..961ce837 100644 --- a/src/lib/Hydra/Controller/Project.pm +++ b/src/lib/Hydra/Controller/Project.pm @@ -78,7 +78,7 @@ sub project_DELETE { requireProjectOwner($c, $c->stash->{project}); $c->model('DB')->schema->txn_do(sub { - $c->stash->{project}->jobsetevals->delete; + $c->stash->{project}->jobsets->delete; $c->stash->{project}->builds->delete; $c->stash->{project}->delete; });