mirror of
https://github.com/AsgardEternal/DBLogExtension.git
synced 2025-01-02 14:29:25 -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() {
|
async updateAutoWL() {
|
||||||
if(!this.options.whitelistfilepath) return;
|
if(!this.options.whitelistfilepath) return;
|
||||||
// eslint-disable-next-line no-unused-vars
|
// 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, ' +
|
'select lastName as playername, discordID, steamID, ' +
|
||||||
'sum(time_to_sec(timediff(ifnull(endTime,now()), startTime))/3600) as seedTime ' +
|
'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 ' +
|
'from DBLog_PlayerTimes join DBLog_SteamUsers DLSU on DBLog_PlayerTimes.player = DLSU.steamID ' +
|
||||||
|
Loading…
Reference in New Issue
Block a user