Skip to content

Commit

Permalink
set user when creating relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
danielevalverde committed Jan 22, 2025
1 parent ebd7960 commit d0f7746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,11 @@ def feed_invitation(feed, invited_user)
end

def confirmed_relationship(parent, children)
[children].flatten.each { |child| Relationship.create!(source_id: parent.id, target_id: child.id, relationship_type: Relationship.confirmed_type) }
[children].flatten.each { |child| Relationship.create!(source_id: parent.id, target_id: child.id, relationship_type: Relationship.confirmed_type, user_id: child.user_id) }
end

def suggested_relationship(parent, children)
children.each { |child| Relationship.create!(source_id: parent.id, target_id: child.id, relationship_type: Relationship.suggested_type)}
children.each { |child| Relationship.create!(source_id: parent.id, target_id: child.id, relationship_type: Relationship.suggested_type, user_id: child.user_id)}
end

def teams_project_medias
Expand Down

0 comments on commit d0f7746

Please sign in to comment.