diff --git a/server/src/api/get5.go b/server/src/api/get5.go index 652c05a3..bf0efff6 100644 --- a/server/src/api/get5.go +++ b/server/src/api/get5.go @@ -546,7 +546,7 @@ func MatchDemoUploadHandler(w http.ResponseWriter, r *http.Request) { } mapstats := &db.MapStatsData{} - mapstatsRecord := db.SQLAccess.Gorm.Where("match_id = ? AND map_number", matchid, mapNumber).First(&mapstats) + mapstatsRecord := db.SQLAccess.Gorm.Where("match_id = ? AND map_number = ?", matchid, mapNumber).First(&mapstats) if !mapstatsRecord.RecordNotFound() { mapstatsRecord.Update("demoFile", DemoFile) return