Fixed quota reset
This commit is contained in:
parent
d7a9051f7d
commit
66dc111ea4
5 changed files with 19 additions and 51 deletions
|
@ -162,7 +162,7 @@ export function setWelcomePropertiy(connection: mysql.Connection, guild_id: Stri
|
|||
|
||||
export function getLastReset(connection: mysql.Connection) {
|
||||
return new Promise((resolve, reject) => {
|
||||
connection.query("SELECT MAX(date) FROM resets", (error, result) => {
|
||||
connection.query("SELECT MAX(date) AS date FROM resets", (error, result) => {
|
||||
if (error) {
|
||||
reject(error);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue