]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/import.ts
correct error codes and backward compat
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / import.ts
index 6ee109a8f7fac19b9665a3461a9443f7b8238b53..42ca59975aefe6b22448e9ac0d7cc7c45604dbca 100644 (file)
@@ -335,7 +335,7 @@ async function processTorrentOrAbortRequest (req: express.Request, res: express.
     cleanUpReqFiles(req)
 
     res.fail({
-      type: ServerErrorCode.INCORRECT_FILES_IN_TORRENT.toString(),
+      type: ServerErrorCode.INCORRECT_FILES_IN_TORRENT,
       message: 'Torrents with only 1 file are supported.'
     })
     return undefined