aboutsummaryrefslogtreecommitdiff
path: root/backend/controllers/recordController.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/controllers/recordController.go')
-rw-r--r--backend/controllers/recordController.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/controllers/recordController.go b/backend/controllers/recordController.go
index c865bfb..183ab27 100644
--- a/backend/controllers/recordController.go
+++ b/backend/controllers/recordController.go
@@ -106,7 +106,7 @@ func CreateRecordWithDemo(c *gin.Context) {
106 c.JSON(http.StatusBadRequest, models.ErrorResponse(err.Error())) 106 c.JSON(http.StatusBadRequest, models.ErrorResponse(err.Error()))
107 return 107 return
108 } 108 }
109 hostDemoScoreCount, hostDemoScoreTime, err = parser.ProcessDemo(record.HostDemo) 109 hostDemoScoreCount, hostDemoScoreTime, err = parser.ProcessDemo("parser/demos/" + header.Filename)
110 if err != nil { 110 if err != nil {
111 c.JSON(http.StatusBadRequest, models.ErrorResponse(err.Error())) 111 c.JSON(http.StatusBadRequest, models.ErrorResponse(err.Error()))
112 return 112 return