error in profile export
This commit is contained in:
parent
7b721836c8
commit
a02eb39bf1
1 changed files with 1 additions and 0 deletions
|
|
@ -159,6 +159,7 @@ module DataConversion
|
||||||
|
|
||||||
profile_row = model_hash[:profile_attrs].map do |attr_name|
|
profile_row = model_hash[:profile_attrs].map do |attr_name|
|
||||||
attr_name = attr_name.gsub("mongo_", "")
|
attr_name = attr_name.gsub("mongo_", "")
|
||||||
|
attr_name = "_id" if attr_name == "id"
|
||||||
hash["profile"][attr_name]
|
hash["profile"][attr_name]
|
||||||
end
|
end
|
||||||
profiles_csv << person_row
|
profiles_csv << person_row
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue