Skip to content

Commit eff86d0

Browse files
committed
set file/folder name in storage template migration
1 parent 7c04f01 commit eff86d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/task/task.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,8 @@ func (s *Service) StorageMigration() error {
341341

342342
// Build the update query with the new paths.
343343
update := tx.Vod.UpdateOne(video)
344+
update = update.SetFolderName(folderName)
345+
update = update.SetFileName(fileName)
344346
if video.VideoPath != "" {
345347
ext := path.Ext(video.VideoPath)
346348
if ext == ".m3u8" {

0 commit comments

Comments
 (0)