Did not update all SQL requests

This commit is contained in:
2023-07-22 09:45:59 +01:00
parent 758c87652c
commit 58b3dfe28a
2 changed files with 1 additions and 1 deletions

BIN
main

Binary file not shown.

View File

@@ -174,7 +174,7 @@ func getHistory(c *gin.Context) {
var tempUser userData
stmt, err := db.Prepare("SELECT * FROM users WHERE uid=?")
checkErr(err)
err = stmt.QueryRow(history[i].UID).Scan(&tempUser.UID, &tempUser.Name, &tempUser.Password, &tempUser.Role)
err = stmt.QueryRow(history[i].UID).Scan(&tempUser.UID, &tempUser.Name, &tempUser.Password, &tempUser.Role, &tempUser.Points)
checkErr(err)
tempHistory.User = tempUser.Name
stmt.Close()