diff --git a/bin/mongodb/trophy-icons.js b/bin/mongodb/trophy-icons.js new file mode 100644 index 000000000000..f2631f7d8b49 --- /dev/null +++ b/bin/mongodb/trophy-icons.js @@ -0,0 +1,21 @@ +const replacements = + [ + ['wayOfBerserk', ''], + ['marathonWinner', ''], + ['marathonTopTen', ''], + ['marathonTopFifty', ''], + ['marathonTopHundred', ''], + ['marathonSurvivor', ','], + ['developer', ''], + ['moderator', ''], + ['verified', ''], + ['marathonTopFivehundred', ''], + ['contentTeam', ''], + ['secAdvisor', ''], + ['broadcastTeam', ''] + ]; + +replacements.forEach(([kind, icon]) => { + print(kind, icon); + db.trophyKind.updateOne({ _id: kind }, { $set: { icon } }); +});