try {
if ($one_hold) {
- $self->method_lookup('open-ils.storage.transaction.begin')->run( $client );
+ $self->method_lookup('open-ils.storage.transaction.begin')->run();
$holds = [ action::hold_request->search_where( { id => $one_hold, fulfillment_time => undef, cancel_time => undef, frozen => 'f' } ) ];
} elsif ( $check_expire ) {
$log->debug("Cleaning up after previous transaction\n");
$self->method_lookup('open-ils.storage.transaction.rollback')->run;
}
- $self->method_lookup('open-ils.storage.transaction.begin')->run( $client );
+ $self->method_lookup('open-ils.storage.transaction.begin')->run();
$log->info("Processing hold ".$hold->id."...\n");
#first, re-fetch the hold, to make sure it's not captured already
try {
if ($one_reservation) {
- $self->method_lookup('open-ils.storage.transaction.begin')->run( $client );
+ $self->method_lookup('open-ils.storage.transaction.begin')->run();
$reservations = [ booking::reservation->search_where( { id => $one_reservation, capture_time => undef, cancel_time => undef } ) ];
} else {
$log->debug("Cleaning up after previous transaction\n");
$self->method_lookup('open-ils.storage.transaction.rollback')->run;
}
- $self->method_lookup('open-ils.storage.transaction.begin')->run( $client );
+ $self->method_lookup('open-ils.storage.transaction.begin')->run();
$log->info("Processing reservation ".$bresv->id."...\n");
#first, re-fetch the hold, to make sure it's not captured already
my $client = shift;
my $usr = shift;
- $self->method_lookup('open-ils.storage.transaction.begin')->run($client);
+ $self->method_lookup('open-ils.storage.transaction.begin')->run();
my $out_sql = <<" SQL";
SELECT id
my $lo = actor::user->db_Main->selectcol_arrayref($lo_sql, {}, $usr);
- $self->method_lookup('open-ils.storage.transaction.rollback')->run($client);
+ $self->method_lookup('open-ils.storage.transaction.rollback')->run();
if ($self->api_name =~/count$/o) {
return { total => scalar(@$out) + scalar(@$od) + scalar(@$lost) + scalar(@$cl) + scalar(@$lo),