Project: fix DELETE route

This appears to have been broken in ac3e8a4a59,
which removed the `jobsetevals` column from the Projects schema, but didn't
update the Controller accordingly.

Fixes the test added in the previous commit.
This commit is contained in:
Cole Helbling 2021-04-30 10:43:21 -07:00
parent d0682c804d
commit 7c9ed6b919
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -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;
});