From 121d3683e2420a50d402ddc3cb4316882891944c Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 7 May 2009 15:42:58 +0000 Subject: [PATCH] fix Thingy Record expiry workflow activity --- .../Activity/ExpirePurchasedThingyRecords.pm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/WebGUI/Workflow/Activity/ExpirePurchasedThingyRecords.pm b/lib/WebGUI/Workflow/Activity/ExpirePurchasedThingyRecords.pm index 384e28e47..908e94c13 100644 --- a/lib/WebGUI/Workflow/Activity/ExpirePurchasedThingyRecords.pm +++ b/lib/WebGUI/Workflow/Activity/ExpirePurchasedThingyRecords.pm @@ -94,10 +94,10 @@ sub execute { = WebGUI::AssetCollateral::Sku::ThingyRecord::Record->getAllIterator( $self->session, { - constraints => { - "expires < ?" => $time + $self->get('notificationOffset'), - "sentExpiresNotice != ?" => 1, - }, + constraints => [ + { "expires < ?" => $time + $self->get('notificationOffset') }, + { "sentExpiresNotice != ?" => 1 }, + ], }); while ( my $record = $iter->() ) { $record->update({ @@ -121,10 +121,10 @@ sub execute { = WebGUI::AssetCollateral::Sku::ThingyRecord::Record->getAllIterator( $self->session, { - constraints => { - "expires < ?" => $time, - "isHidden != ?" => 1, - }, + constraints => [ + { "expires < ?" => $time }, + { "isHidden != ?" => 1 }, + ], }); while ( my $record = $iter->() ) { # Record is hidden