From aa9c9376f1d81afbcef840afcc8fa400fda6376b Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Fri, 22 Nov 2024 08:43:47 +0100 Subject: [PATCH] update db trophy kinds to new lichess font icon chars there's a 1h cache in prod we have to wait out --- bin/mongodb/trophy-icons.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bin/mongodb/trophy-icons.js 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 } }); +});