properly get a list of layers

This commit is contained in:
Skillet 2023-04-26 14:58:21 -04:00
parent 3e31f829eb
commit b2c63d07d9

View File

@ -138,6 +138,9 @@ export default class DBLog extends BasePlugin {
},
lastName: {
type: DataTypes.STRING
},
discordID: {
type: DataTypes.BIGINT
}
},
{
@ -471,7 +474,7 @@ export default class DBLog extends BasePlugin {
}
async onNewGame(info) {
this.verbose(1, "New Game")
this.verbose(1, 'New Game');
await this.models.Match.update(
{ endTime: info.time, winner: info.winner },
{ where: { server: this.options.overrideServerID || this.server.id, endTime: null } }
@ -488,8 +491,8 @@ export default class DBLog extends BasePlugin {
});
}
async onRoundEnd(info){
this.verbose(1, "Round End");
async onRoundEnd(info) {
this.verbose(1, 'Round End');
await this.models.Match.update(
{ endTime: info.time, winner: info.winnerFaction },
{ where: { server: this.options.overrideServerID || this.server.id, endTime: null } }
@ -497,7 +500,7 @@ export default class DBLog extends BasePlugin {
}
async onPlayerNameChange(info) {
if(info.player)
if (info.player)
await this.models.SteamUser.upsert({
steamID: info.player.steamID,
lastName: info.player.name