Update db-log-addOn.js

This commit is contained in:
Skillet 2023-05-08 16:08:43 -04:00 committed by GitHub
parent a5b85e5143
commit 8183d134b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,7 @@ export default class DBLogPlayerTime extends DBLog {
async updateAutoWL() {
if(!this.options.whitelistfilepath) return;
// eslint-disable-next-line no-unused-vars
const seedTimes = await this.query(
const seedTimes = await this.models.query(
'select lastName as playername, discordID, steamID, ' +
'sum(time_to_sec(timediff(ifnull(endTime,now()), startTime))/3600) as seedTime ' +
'from DBLog_PlayerTimes join DBLog_SteamUsers DLSU on DBLog_PlayerTimes.player = DLSU.steamID ' +