File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
classes/ColdTrick/GroupTools Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -139,14 +139,14 @@ protected static function findStaleGroups($ts) {
139
139
"e.guid IN (
140
140
SELECT container_guid
141
141
FROM (
142
- SELECT container_guid, max(time_created ) as time_created
142
+ SELECT container_guid, max(time_updated ) as time_updated
143
143
FROM {$ dbprefix }entities
144
144
WHERE type = 'object'
145
145
AND subtype IN ( " . implode (', ' , $ object_ids ) . ")
146
146
GROUP BY container_guid
147
147
) as content
148
- WHERE content.time_created > {$ compare_ts_lower }
149
- AND content.time_created < {$ compare_ts_upper }
148
+ WHERE content.time_updated > {$ compare_ts_lower }
149
+ AND content.time_updated < {$ compare_ts_upper }
150
150
) " ,
151
151
],
152
152
];
@@ -173,15 +173,15 @@ protected static function findStaleGroups($ts) {
173
173
"e.guid IN (
174
174
SELECT container_guid
175
175
FROM (
176
- SELECT ce.container_guid, max(re.time_created ) as time_created
176
+ SELECT ce.container_guid, max(re.time_updated ) as time_updated
177
177
FROM {$ dbprefix }entities re
178
178
JOIN {$ dbprefix }entities ce ON re.container_guid = ce.guid
179
179
WHERE re.type = 'object'
180
180
AND re.subtype IN ( " . implode (', ' , $ comment_ids ) . ")
181
181
GROUP BY ce.container_guid
182
182
) as comments
183
- WHERE comments.time_created > {$ compare_ts_lower }
184
- AND comments.time_created < {$ compare_ts_upper }
183
+ WHERE comments.time_updated > {$ compare_ts_lower }
184
+ AND comments.time_updated < {$ compare_ts_upper }
185
185
) " ,
186
186
],
187
187
];
You can’t perform that action at this time.
0 commit comments