fix 下载任务userid登记

This commit is contained in:
jxxghp
2024-03-08 14:40:00 +08:00
parent de4a7becc2
commit 0dad6860c4
3 changed files with 11 additions and 7 deletions

View File

@ -45,7 +45,7 @@ def add_downloading(
media_info=mediainfo,
torrent_info=torrentinfo
)
did = DownloadChain().download_single(context=context, username=current_user.name)
did = DownloadChain().download_single(context=context, userid=current_user.name, username=current_user.name)
return schemas.Response(success=True if did else False, data={
"download_id": did
})