mirror of
https://github.com/AsgardEternal/DBLogExtension.git
synced 2024-12-30 16:29:17 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
8183d134b3
commit
fbabf1e9bc
@ -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.models.query(
|
||||
const seedTimes = await this.options.database.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 ' +
|
||||
|
Loading…
Reference in New Issue
Block a user