This commit is contained in:
parent
6947c30c23
commit
2ab3d6b023
@ -36,7 +36,7 @@ app.use(
|
|||||||
pattern: "1 0 * * *", // Every day at 00:01 (London time)
|
pattern: "1 0 * * *", // Every day at 00:01 (London time)
|
||||||
timezone: "Europe/London",
|
timezone: "Europe/London",
|
||||||
run: async () => {
|
run: async () => {
|
||||||
const pages = 10;
|
const pages = 20; // top 1000 players
|
||||||
const cooldown = 60_000 / 250; // 250 requests per minute
|
const cooldown = 60_000 / 250; // 250 requests per minute
|
||||||
|
|
||||||
let toTrack: PlayerDocument[] = await PlayerModel.find({});
|
let toTrack: PlayerDocument[] = await PlayerModel.find({});
|
||||||
|
Reference in New Issue
Block a user