aboutsummaryrefslogtreecommitdiff
path: root/backend/controllers
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-07-03 08:40:43 +0000
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-07-03 08:40:43 +0000
commit1a14309e212a697bae8acd4ddb17723b0f6670a6 (patch)
treeea6a255e6170c31b2928f164e4b3329caec091b0 /backend/controllers
parentfeat: add moderator status into jwt token (diff)
downloadlphub-1a14309e212a697bae8acd4ddb17723b0f6670a6.tar.gz
lphub-1a14309e212a697bae8acd4ddb17723b0f6670a6.tar.bz2
lphub-1a14309e212a697bae8acd4ddb17723b0f6670a6.zip
feat: parser for getting portal and tick count (#42)
Former-commit-id: 1619ece868b7009a661dcc3b622746cc09981042
Diffstat (limited to '')
-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