Gdzie w tym zapytaniu jest syntax ??
query = "UPDATE users SET points=" + points + " WHERE id=" + user.id;
Komunikat błędu:
UnhandledPromiseRejectionWarning: Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''1' WHERE id='1'