From 94d78287ebddb059f2b8db13eff9f74c67ff1673 Mon Sep 17 00:00:00 2001 From: evazion Date: Sat, 21 Mar 2020 18:19:08 -0500 Subject: [PATCH] bulk update request pruner: fix forum posts reference. --- app/logical/bulk_update_request_pruner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logical/bulk_update_request_pruner.rb b/app/logical/bulk_update_request_pruner.rb index 6d0aa7054..38ed0c5c0 100644 --- a/app/logical/bulk_update_request_pruner.rb +++ b/app/logical/bulk_update_request_pruner.rb @@ -5,7 +5,7 @@ module BulkUpdateRequestPruner BulkUpdateRequest.old.pending.find_each do |bulk_update_request| if bulk_update_request.forum_topic body = "This bulk update request is pending automatic rejection in 5 days." - unless bulk_update_request.forum_topic.posts.where(creator_id: User.system.id, body: body).exists? + unless bulk_update_request.forum_topic.forum_posts.where(creator_id: User.system.id, body: body).exists? bulk_update_request.forum_updater.update(body) end end