Skip to content

Commit

Permalink
GORM FIX(again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowing committed Jan 3, 2020
1 parent d9ee475 commit c8fbf5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/api/get5.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8fbf5f

Please sign in to comment.