v0.42.1 Rewrite and simplication of concurrent-ruby support

This commit is contained in:
David Sainty 2024-08-17 22:45:04 +10:00
parent fed7a8935e
commit ccff9b1b64

View File

@ -1280,7 +1280,7 @@ class GossamerForumsImporter < ImportScripts::Base
created_at: Time.at(row['post_time']), created_at: Time.at(row['post_time']),
updated_at: Time.at(row['post_time']), updated_at: Time.at(row['post_time']),
reads: post_views || 0, reads: post_views || 0,
post_number: post_number # post_number: post_number
) )
post.custom_fields['original_gossamer_id'] = row['post_id'] post.custom_fields['original_gossamer_id'] = row['post_id']
post.save! post.save!
@ -1332,7 +1332,7 @@ class GossamerForumsImporter < ImportScripts::Base
created_at: Time.at(reply_row['post_time']), created_at: Time.at(reply_row['post_time']),
updated_at: Time.at(reply_row['post_time']), updated_at: Time.at(reply_row['post_time']),
reads: reply_post_views || 0, reads: reply_post_views || 0,
post_number: post_number # post_number: post_number
) )
post.custom_fields['original_gossamer_id'] = reply_row['post_id'] post.custom_fields['original_gossamer_id'] = reply_row['post_id']
post.save! post.save!