Skip to content

Commit

Permalink
update db trophy kinds to new lichess font icon chars
Browse files Browse the repository at this point in the history
there's a 1h cache in prod we have to wait out
  • Loading branch information
ornicar committed Nov 22, 2024
1 parent 48eb8ff commit aa9c937
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions bin/mongodb/trophy-icons.js
Original file line number Diff line number Diff line change
@@ -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 } });
});

0 comments on commit aa9c937

Please sign in to comment.