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.
This commit is contained in:
parent
d0682c804d
commit
7c9ed6b919
@ -78,7 +78,7 @@ sub project_DELETE {
|
|||||||
requireProjectOwner($c, $c->stash->{project});
|
requireProjectOwner($c, $c->stash->{project});
|
||||||
|
|
||||||
$c->model('DB')->schema->txn_do(sub {
|
$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}->builds->delete;
|
||||||
$c->stash->{project}->delete;
|
$c->stash->{project}->delete;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user