DEV: Fix rake task to delete old export topics.

This commit is contained in:
Guo Xiang Tan 2019-05-24 11:20:20 +08:00
parent 76f7e90e23
commit 791241e0b2

View File

@ -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