mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-12-27 20:35:38 -05:00
Increase PD capacity to 1920 from 256
This commit is contained in:
parent
1765a0ef2a
commit
e8e1342f21
@ -98,7 +98,7 @@ export class MPServerSvc {
|
|||||||
const findServerByName = await this.model.findOne({where: {serverName: serverName}});
|
const findServerByName = await this.model.findOne({where: {serverName: serverName}});
|
||||||
if (findServerByName) {
|
if (findServerByName) {
|
||||||
let PD = findServerByName.dataValues.playerData;
|
let PD = findServerByName.dataValues.playerData;
|
||||||
if (PD.length > 256) PD = [];
|
if (PD.length > 1920) PD = []; //Selfnote: 86400/45 = 1920, where 86400 is seconds in a day and 45 is the MPModule's refresh interval.
|
||||||
PD.push(playerCount);
|
PD.push(playerCount);
|
||||||
const updatePD = await this.model.update({playerData: PD}, {where: {serverName: serverName}});
|
const updatePD = await this.model.update({playerData: PD}, {where: {serverName: serverName}});
|
||||||
if (updatePD) true;
|
if (updatePD) true;
|
||||||
|
Loading…
Reference in New Issue
Block a user