fix: /metainfo json response (#738)

This commit is contained in:
Trim21
2024-04-29 16:27:25 +08:00
committed by GitHub
parent 5ff9cddead
commit e0cd98f5a0
+1 -1
View File
@@ -588,7 +588,7 @@ router.get<{hashes: string}>(
),
);
} catch {
return res.status(404).json('Failed to access torrent files.');
return res.status(404).json({code: 404, message: 'Failed to access torrent files.'});
}
if (hashes.length < 2) {