bug fixed
This commit is contained in:
@@ -282,7 +282,7 @@ export default async function Index(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
filePath: `archives/preview/${collectionId}`,
|
filePath: `archives/preview/${collectionId}`,
|
||||||
});
|
});
|
||||||
|
|
||||||
generatePreview(fileBuffer, collectionId, linkId);
|
await generatePreview(fileBuffer, collectionId, linkId);
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.unlinkSync(files.file[0].filepath);
|
fs.unlinkSync(files.file[0].filepath);
|
||||||
|
|||||||
Reference in New Issue
Block a user