We should not count today when generating the hold expiration list.
So, we'll look for holds that expire before 'today' instead of those
that expire before 'now'.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
};
if($self->api_name =~ /expired/) {
$query->{'where'}->{'+alhr'}->{'-or'} = {
- shelf_expire_time => { '<' => 'now'},
+ shelf_expire_time => { '<' => 'today'},
cancel_time => { '!=' => undef },
};
}