Bug 30462: Fix display of the complete jobs

We want to display the jobs terminated in the last hour, not today.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-06-13 11:34:21 +02:00 committed by Tomas Cohen Arazi
parent e0363127a4
commit e9ac367a05
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 2 additions and 2 deletions

View File

@ -96,14 +96,14 @@ if ( $op eq 'list' ) {
$can_manage_background_jobs
? Koha::BackgroundJobs->search(
{
ended_on => { '>=' => $dtf->format_date($ended_since) }
ended_on => { '>=' => $dtf->format_datetime($ended_since) }
},
{ order_by => { -desc => 'enqueued_on' } }
)
: Koha::BackgroundJobs->search(
{
borrowernumber => $logged_in_user->borrowernumber,
ended_on => { '>=' => $dtf->format_date($ended_since) }
ended_on => { '>=' => $dtf->format_datetime($ended_since) }
},
{ order_by => { -desc => 'enqueued_on' } }
);