|
Lines 150-156
sub pseudonymize {
Link Here
|
| 150 |
my ($self) = @_; |
150 |
my ($self) = @_; |
| 151 |
|
151 |
|
| 152 |
return unless ( $self->borrowernumber && grep { $_ eq $self->type } qw(renew issue return onsite_checkout) ); |
152 |
return unless ( $self->borrowernumber && grep { $_ eq $self->type } qw(renew issue return onsite_checkout) ); |
| 153 |
Koha::BackgroundJob::PseudonymizeStatistic->new->enqueue( { statistic => $self->unblessed } ); |
153 |
|
|
|
154 |
# FIXME When getting the object from svc/renewal we get a DateTime object |
| 155 |
# normally we just fetch from DB to clear this, but statistics has no primary key |
| 156 |
# so we just force it to string context |
| 157 |
my $unblessed = $self->unblessed; |
| 158 |
$unblessed->{datetime} = $unblessed->{datetime} . ""; |
| 159 |
|
| 160 |
Koha::BackgroundJob::PseudonymizeStatistic->new->enqueue( { statistic => $unblessed } ); |
| 154 |
|
161 |
|
| 155 |
} |
162 |
} |
| 156 |
|
163 |
|
| 157 |
- |
|
|