From 8dcc13957b835d9170d79c3db7f3e459fc8a8f58 Mon Sep 17 00:00:00 2001 From: Leon <147289645+LeoninCS@users.noreply.github.com> Date: Sun, 7 Dec 2025 17:39:03 +0800 Subject: [PATCH] fix: change account_id to accountID to match PublishVideo(func) --- internal/http/video_handler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/http/video_handler.go b/internal/http/video_handler.go index f67e0c9..f12ae99 100644 --- a/internal/http/video_handler.go +++ b/internal/http/video_handler.go @@ -43,14 +43,14 @@ func (vh *VideoHandler) PublishVideo(c *gin.Context) { c.JSON(400, gin.H{"error": "play url is required"}) return } - uidValue, exists := c.Get("account_id") + uidValue, exists := c.Get("accountID") if !exists { - c.JSON(400, gin.H{"error": "account_id not found"}) + c.JSON(400, gin.H{"error": "accountID not found"}) return } authorID, ok := uidValue.(uint) if !ok { - c.JSON(400, gin.H{"error": "account_id has invalid type"}) + c.JSON(400, gin.H{"error": "accountID has invalid type"}) return } video := &video.Video{