v0.4 Go back to simpler use of MySQL2

This commit is contained in:
David Sainty 2024-09-09 14:56:58 +10:00
parent 8ab138242a
commit 393cea00c2

View File

@ -62,7 +62,7 @@ class GossamerForumsDestroyDeletedPosts < ImportScripts::Base
post_id = legacy_post['post_id'] post_id = legacy_post['post_id']
# Look for the post in Discourse by custom field # Look for the post in Discourse by custom field
post = find_post_by_custom_field(legacy_post.post_id) post = find_post_by_custom_field(post_id)
if post if post
puts "DestroyDeletedPosts: Mock-Deleting post with id: #{post.id}" puts "DestroyDeletedPosts: Mock-Deleting post with id: #{post.id}"