mirror of
https://github.com/ritz078/transform.git
synced 2026-11-23 09:20:54 +03:00
fixes
This commit is contained in:
1 parent
3a164922ff
commit
ce66b54644
1 file changed
+2
@@ -29,6 +29,8 @@ export default (req: NextApiRequest, res: NextApiResponse) => {
|
||||
createFormatter(config)
|
||||
);
|
||||
const schema = generator.createSchema("*");
|
||||
|
||||
fs.unlink(filePath, () => {});
|
||||
res.status(200).send(schema);
|
||||
} catch (e) {
|
||||
res.status(500).send(e.message);
|
||||
|
||||
Reference in new issue
Block a user