Skip to content

Commit

Permalink
Merge pull request #8566 from CitizenLabDotCo/TAN-2430/fix-project-co…
Browse files Browse the repository at this point in the history
…py-followers

[TAN-2285] Fix idea reference lookup when serializing followers
  • Loading branch information
adessy authored Aug 1, 2024
2 parents 69cf11d + 6edf9f2 commit 796f35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back/app/services/project_copy_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ def yml_followers(exported_ideas, shift_timestamps: 0)

followers.map do |follower|
{
'followable_ref' => lookup_ref(follower.followable_id, %i[project]),
'followable_ref' => lookup_ref(follower.followable_id, %i[project idea]),
'user_ref' => lookup_ref(follower.user_id, :user),
'created_at' => shift_timestamp(follower.created_at, shift_timestamps)&.iso8601,
'updated_at' => shift_timestamp(follower.updated_at, shift_timestamps)&.iso8601
Expand Down

0 comments on commit 796f35f

Please sign in to comment.