From ef548cbfee6162c2d6aec5eaf80f7d692ba9e927 Mon Sep 17 00:00:00 2001 From: Kaleb Murphy Date: Tue, 17 Feb 2009 14:20:35 +0000 Subject: [PATCH] Time multiplier was set wrong --- lib/WebGUI/Workflow/Activity/ExpireIncompleteSurveyResponses.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Workflow/Activity/ExpireIncompleteSurveyResponses.pm b/lib/WebGUI/Workflow/Activity/ExpireIncompleteSurveyResponses.pm index caea2c54d..25f5e2ea8 100644 --- a/lib/WebGUI/Workflow/Activity/ExpireIncompleteSurveyResponses.pm +++ b/lib/WebGUI/Workflow/Activity/ExpireIncompleteSurveyResponses.pm @@ -108,7 +108,7 @@ sub execute { my $sql = "select r.Survey_responseId, r.username, r.userId, upd.email,upd.firstName,upd.lastName, r.startDate, s.timeLimit, ad.title, ad.url from Survey s, Survey_response r, assetData ad, userProfileData upd - where r.isComplete = 0 and s.timeLimit > 0 and (unix_timestamp() - r.startDate) > (s.timeLimit * 1) + where r.isComplete = 0 and s.timeLimit > 0 and (unix_timestamp() - r.startDate) > (s.timeLimit * 60) and r.assetId = s.assetId and s.revisionDate = (select max(revisionDate) from Survey where assetId = s.assetId) and ad.assetId = s.assetId and ad.revisionDate = s.revisionDate and upd.userId = r.userId"; my $refs = $self->session->db->buildArrayRefOfHashRefs($sql);