Delete the successfully imported authority record from the vandelay
authority queue instead of the bib record that happens to have the same
ID as the imported authority record.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
$pcrud->request('open-ils.pcrud.transaction.begin', $authtoken)->recv;
my $err;
+ my $api = 'open-ils.pcrud.delete.';
+ $api .= $cur_rec_type eq 'auth' ? 'vqar' : 'vqbr';
+
foreach (@cleanup_recs) {
eval {
- $pcrud->request(
- 'open-ils.pcrud.delete.vqbr', $authtoken, $_)->recv;
+ $pcrud->request($api, $authtoken, $_)->recv;
};
if ($@) {