Did not update all SQL requests

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

No files matched your search

BIN
View File
Binary file not shown.
+1 -1
View File
@@ -174,7 +174,7 @@ func getHistory(c *gin.Context) {
var tempUser userData var tempUser userData
stmt, err := db.Prepare("SELECT * FROM users WHERE uid=?") stmt, err := db.Prepare("SELECT * FROM users WHERE uid=?")
checkErr(err) 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) checkErr(err)
tempHistory.User = tempUser.Name tempHistory.User = tempUser.Name
stmt.Close() stmt.Close()