Skip to content

Commit 3fa059a

Browse files
committed
fix: ignore eslint error
1 parent c5bfb80 commit 3fa059a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,8 @@ async function syncFromMee6(guild: string) {
544544
}
545545
const users = data.players;
546546
let pageNumber = 1;
547+
// this is needed because MEE6 doesn't give us the total amount of pages
548+
// eslint-disable-next-line no-constant-condition
547549
while (true) {
548550
const res = await fetch(`https://mee6.xyz/api/plugins/levels/leaderboard/${guild}?limit=1000&page=${pageNumber}`);
549551
const data = await res.json();

0 commit comments

Comments
 (0)