Update db-log-addOn.js

This commit is contained in:
Skillet 2023-02-14 00:17:24 -05:00 committed by GitHub
parent e9184ea096
commit 9340081844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ export default class DBLogPlayerTime extends DBLog {
async onUpdatedA2SInformation(info) { async onUpdatedA2SInformation(info) {
await super.onUpdatedA2SInformation(info); await super.onUpdatedA2SInformation(info);
if(info.a2sPlayerCount >= this.options.seedingThreshold && seeding === true) { if(info.a2sPlayerCount >= this.options.seedingThreshold && this.seeding === true) {
await this.models.PlayerTime.update( await this.models.PlayerTime.update(
{ seedTime: info.time }, { seedTime: info.time },
{ 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 } }