From c8fbf5f8ed29644b028150c76f9e53ba61c4c1fb Mon Sep 17 00:00:00 2001 From: Flowing Date: Sat, 4 Jan 2020 04:24:44 +0900 Subject: [PATCH] GORM FIX(again) --- server/src/api/get5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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