mirror of
https://github.com/AsgardEternal/SquadJS.git
synced 2024-09-28 16:24:25 -05:00
properly get a list of layers
This commit is contained in:
parent
3e31f829eb
commit
b2c63d07d9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user