Commit bd3324cc authored by Z.J. van de Weg's avatar Z.J. van de Weg

Skip system notes from receiving award emoji

parent 080cbcab
...@@ -7,8 +7,11 @@ Gitlab::Seeder.quiet do ...@@ -7,8 +7,11 @@ Gitlab::Seeder.quiet do
project.team.users.sample(2) do |user| project.team.users.sample(2) do |user|
issue.create_award_emoji(emoji.sample, user) issue.create_award_emoji(emoji.sample, user)
note = issue.notes.sample issue.notes.sample(2).each do |note|
note.create_award_emoji(emoji.sample, user) next if note.system?
note.create_award_emoji(emoji.sample, user)
end
print '.' print '.'
end end
end end
...@@ -19,8 +22,11 @@ Gitlab::Seeder.quiet do ...@@ -19,8 +22,11 @@ Gitlab::Seeder.quiet do
project.team.users.sample(2).each do |user| project.team.users.sample(2).each do |user|
mr.create_award_emoji(emoji.sample, user) mr.create_award_emoji(emoji.sample, user)
note = mr.notes.sample mr.notes.sample(2).each do |note|
note.create_award_emoji(emoji.sample, user) next if note.system?
note.create_award_emoji(emoji.sample, user)
end
print '.' print '.'
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment