Fix last failing test

This commit is contained in:
Eugene Burmakin
2025-09-13 12:44:47 +02:00
parent b7ae9097be
commit 5fe7a47ee2

View File

@@ -60,11 +60,12 @@ class Users::ImportData::Stats
end
def prepare_stat_attributes(stat_data)
attributes = stat_data.except('created_at', 'updated_at')
attributes = stat_data.except('created_at', 'updated_at', 'sharing_uuid')
attributes['user_id'] = user.id
attributes['created_at'] = Time.current
attributes['updated_at'] = Time.current
attributes['sharing_uuid'] = SecureRandom.uuid
attributes.symbolize_keys
rescue StandardError => e