mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:40:00 +08:00
DEV: Fix rake task to delete old export topics.
This commit is contained in:
parent
76f7e90e23
commit
791241e0b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user