diff --git a/lib/tasks/vanilla.thor b/lib/tasks/vanilla.thor index 59170be20..dba425077 100644 --- a/lib/tasks/vanilla.thor +++ b/lib/tasks/vanilla.thor @@ -247,7 +247,7 @@ class Vanilla < Thor SET views = :views, closed = :closed, pinned_at = :pinned_at, - last_posted_at = (SELECT MAX(created_at) FROM posts WHERE topic_id = :topic_id) + last_posted_at = (SELECT MAX(created_at) FROM posts WHERE topic_id = :topic_id), bumped_at = (SELECT MAX(created_at) FROM posts WHERE topic_id = :topic_id) WHERE id = :topic_id SQL