Remove debug code from RemoveOldCarts workflow.
This commit is contained in:
parent
4457ee2c7a
commit
072aee2f38
1 changed files with 0 additions and 2 deletions
|
|
@ -83,7 +83,6 @@ sub execute {
|
||||||
my $expired = 0;
|
my $expired = 0;
|
||||||
my $cartIds = [];
|
my $cartIds = [];
|
||||||
my $limit = $now - $self->get('cartTimeout');
|
my $limit = $now - $self->get('cartTimeout');
|
||||||
$session->log->warn("limit: $limit");
|
|
||||||
my $expiredCarts = $session->db->read('select cartId from cart where creationDate < '.$limit);
|
my $expiredCarts = $session->db->read('select cartId from cart where creationDate < '.$limit);
|
||||||
$expiredCarts->execute();
|
$expiredCarts->execute();
|
||||||
CART: while( my ($cartId) = $expiredCarts->array() ) {
|
CART: while( my ($cartId) = $expiredCarts->array() ) {
|
||||||
|
|
@ -91,7 +90,6 @@ sub execute {
|
||||||
WebGUI::Shop::Cart->new($session, $cartId);
|
WebGUI::Shop::Cart->new($session, $cartId);
|
||||||
};
|
};
|
||||||
next CART if WebGUI::Error->caught;
|
next CART if WebGUI::Error->caught;
|
||||||
$session->log->warn("cartId: $cartId");
|
|
||||||
$cart->delete; ##Delete will empty, then delete.
|
$cart->delete; ##Delete will empty, then delete.
|
||||||
##Time check and set flag
|
##Time check and set flag
|
||||||
if (time() > $finishTime) {
|
if (time() > $finishTime) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue