Lines 52-58
sub process {
Link Here
|
52 |
$self->start; |
52 |
$self->start; |
53 |
my $statistic = $args->{statistic}; |
53 |
my $statistic = $args->{statistic}; |
54 |
my $stat_object = Koha::Statistic->new($statistic); |
54 |
my $stat_object = Koha::Statistic->new($statistic); |
55 |
Koha::PseudonymizedTransaction->new_from_statistic($stat_object)->store(); |
55 |
# creating new object updates the timestamp to the current time |
|
|
56 |
# we need to preserve the original transaction time |
57 |
# if it was passed |
58 |
$stat_object->datetime( $statistic->{datetime} ); |
59 |
my $ps= Koha::PseudonymizedTransaction->new_from_statistic($stat_object); |
60 |
$ps->store(); |
56 |
$self->finish( { data => "" } ); # We want to clear the job data to avoid storing patron information |
61 |
$self->finish( { data => "" } ); # We want to clear the job data to avoid storing patron information |
57 |
|
62 |
|
58 |
} |
63 |
} |
59 |
- |
|
|