From d3a838f0f491e1a86eac36f506fa56957f062540 Mon Sep 17 00:00:00 2001 From: Bram Adams <3282661+bramses@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:51:02 -0400 Subject: [PATCH] fixes --- share-pic.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/share-pic.js b/share-pic.js index cb119fa..398ac43 100644 --- a/share-pic.js +++ b/share-pic.js @@ -463,17 +463,17 @@ export const sharePic = async (imageUrl, text) => { const verticalResult = await uploadToCloudflare(resultTemp); console.log(result); // delete temp files from disk - deleteFile(dalleFileTemp); + // deleteFile(dalleFileTemp); deleteFile(resultTemp); const { bufferH } = await overlayTextOnImageHorizontal(dalleFileTemp, text); const resultTempH = `${Date.now()}.png`; fs.writeFileSync(resultTempH, bufferH); - const horizontalResult = await uploadToCloudflare(resultTemp); + const horizontalResult = await uploadToCloudflare(resultTempH); console.log(result); // delete temp files from disk deleteFile(dalleFileTemp); - deleteFile(resultTemp); + deleteFile(resultTempH); return {