mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-02 10:59:18 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
dac74f45fe
commit
b96a9c259e
@ -101,8 +101,10 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
console.log('switching to Live');
|
console.log('switching to Live');
|
||||||
this.seeding = false;
|
this.seeding = false;
|
||||||
let curDateTime = new Date();
|
let curDateTime = new Date();
|
||||||
|
let timeNow = curDateTime.getFullYear() + '-' + (curDateTime.getMonth() + 1) + '-' + curDateTime.getDate()+' '+curDateTime.getHours()+':'+curDateTime.getMinutes()+':'+curDateTime.getSeconds();
|
||||||
|
console.log(timeNow);
|
||||||
await this.models.PlayerTime.update(
|
await this.models.PlayerTime.update(
|
||||||
{ seedTime: curDateTime.getFullYear() + '-' + (curDateTime.getMonth() + 1) + '-' + curDateTime.getDate()+'T'+curDateTime.getHours()+':'+curDateTime.getMinutes()+':'+curDateTime.getSeconds()+'Z'},
|
{ seedTime: timeNow },
|
||||||
{ where: { seedTime: null, joinedSeeding: 1, leaveTime: null, server: this.options.overrideServerID || this.server.id } }
|
{ where: { seedTime: null, joinedSeeding: 1, leaveTime: null, server: this.options.overrideServerID || this.server.id } }
|
||||||
);
|
);
|
||||||
}else if(this.seeding == false && (info.a2sPlayerCount) < 1){
|
}else if(this.seeding == false && (info.a2sPlayerCount) < 1){
|
||||||
|
Loading…
Reference in New Issue
Block a user