DEV: Fix rake task to delete old export topics.

DEV: Fix rake task to delete old export topics.

diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake
index 982909c..1867881 100644
--- a/lib/tasks/posts.rake
+++ b/lib/tasks/posts.rake
@@ -496,7 +496,7 @@ end
 
 def destroy_old_data_exports
   topics = Topic.with_deleted.where(<<~SQL, 2.days.ago)
-    slug = '%-export-complete' AND
+    slug LIKE '%-export-complete' AND
     archetype = 'private_message' AND
     posts_count = 1 AND
     created_at < ? AND

GitHub sha: 791241e0

1 Like