API test /api/push

This commit is contained in:
Graham Christensen
2022-01-14 14:04:03 -05:00
parent fe095a56c5
commit 20db82b001
2 changed files with 45 additions and 2 deletions

View File

@ -254,8 +254,10 @@ sub push : Chained('api') PathPart('push') Args(0) {
foreach my $r (@repos) {
triggerJobset($self, $c, $_, $force) foreach $c->model('DB::Jobsets')->search(
{ 'project.enabled' => 1, 'me.enabled' => 1 },
{ join => 'project'
, where => \ [ 'exists (select 1 from JobsetInputAlts where project = me.project and jobset = me.name and value = ?)', [ 'value', $r ] ]
{
join => 'project',
where => \ [ 'exists (select 1 from JobsetInputAlts where project = me.project and jobset = me.name and value = ?)', [ 'value', $r ] ],
order_by => 'me.id DESC'
});
}