Skip to content

Commit f34a368

Browse files
committed
Fix mapped name for language property of videos
1 parent 6eae45e commit f34a368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/database/videos.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type Video struct {
2020
Viewable string `db:"viewable" json:"viewable"`
2121
ViewCount int `db:"view_count" json:"view_count"`
2222
Duration string `db:"duration" json:"duration"`
23-
VideoLanguage string `db:"video_language" json:"video_language"`
23+
VideoLanguage string `db:"video_language" json:"language"`
2424
MutedSegments []VideoMutedSegment `json:"muted_segments"`
2525
CategoryID *string `db:"category_id" dbs:"v.category_id" json:"-"`
2626
Type string `db:"type" json:"type"`

0 commit comments

Comments
 (0)