Skip to content

Commit f52dd25

Browse files
committed
fix(api): wrong data being shown on the leaderboard
1 parent 4606ed4 commit f52dd25

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ Thanks to @ToastedDev for his contributions to the bot. Here are some changes th
4848
* Added a rankcard to /xp (#17)
4949
* User management (#19)
5050
* Added syncing (#24)
51+
### Patches
52+
#### Beta 0.1.1
53+
* Fixed wrong data being shown on the leaderboard
5154

5255
# Roadmap
5356
* Rewritten site using NextJS
@@ -56,4 +59,5 @@ Thanks to @ToastedDev for his contributions to the bot. Here are some changes th
5659
* Live updates
5760
* Track guilds and users xp
5861

62+
5963
Want to add more features? Join our server (linked above) and add a post to `feature-requests`

api/views/leaderboard.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</h2>
3333
<p class="userXP">XP: <%= user.xp.toLocaleString() %>
3434
</p>
35-
<p class="userXP">Level <%= user.level.toLocaleString() %> | <%= user.xp.toLocaleString() %>/<%= (user.xp + user.xp_needed_next_level).toLocaleString() %> points to next level (<%= user.progress_next_level %>%)
35+
<p class="userXP">Level <%= user.level.toLocaleString() %> | <%= user.xp_needed_next_level.toLocaleString() %>/<%= (user.xp + user.xp_needed_next_level).toLocaleString() %> points to next level (<%= user.progress_next_level %>%)
3636
</p>
3737
</div>
3838
</div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "xpbot",
33
"type": "module",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"scripts": {
66
"dev:api": "bun --watch api/index.ts --dev",
77
"dev:bot": "bun --watch bot/index.ts --dev",

0 commit comments

Comments
 (0)