mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Fix signup and import
This commit is contained in:
parent
71ba1ead4f
commit
7243393272
2 changed files with 3 additions and 2 deletions
|
@ -237,7 +237,8 @@ async function processTorrentOrAbortRequest (req: express.Request, res: express.
|
|||
torrentfile.path = newTorrentPath
|
||||
|
||||
const buf = await readFile(torrentfile.path)
|
||||
const parsedTorrent = parseTorrent(buf) as Instance
|
||||
// FIXME: typings: parseTorrent now returns an async result
|
||||
const parsedTorrent = await (parseTorrent(buf) as unknown as Promise<Instance>)
|
||||
|
||||
if (parsedTorrent.files.length !== 1) {
|
||||
cleanUpReqFiles(req)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue