LeventHAN / SquadStatsJSPRO

An advanced version of SquadStatJS (tracking your squad stats) with advanced discord commands to manage your discord server. (Soon with inbuild stat website)
MIT License
34 stars 29 forks source link

Not in use and returns undefined #87

Open watchful-eyes opened 1 year ago

watchful-eyes commented 1 year ago

https://github.com/11TStudio/SquadStatsJSPRO/blob/8655123a977bc6a800fbf53902fbfd439990f129/base/SquadStatsJSv3.js#L1076-L1081 This data never used in ssjspro Also should be like this

 await resp.add(
        "Matches",
        `SELECT COUNT(DISTINCT(\`match\`)) as Matches FROM DBLog_Deaths WHERE attacker = "${steamUID}" AND \`match\` IS NOT NULL`,
        "0",
        "Matches"
    );
LeventHAN commented 1 year ago

You are right @CO-RONA Thanks for pointing it out, can you open a PR with the fix please so I can merge it?