Skip to content

Commit 57d5525

Browse files
authored
Merge pull request #1040 from Zibbp/set-folder-file-name-migrate
set file/folder name in storage template migration
2 parents 7c04f01 + eff86d0 commit 57d5525

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)