From 0f989751db06aee7ded4b7f4676609f4e34de314 Mon Sep 17 00:00:00 2001 From: kaatt <10688522+kaatt@users.noreply.github.com> Date: Wed, 14 Sep 2022 23:15:10 +0530 Subject: [PATCH] actually fix --- src/Utils/messages-media.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Utils/messages-media.ts b/src/Utils/messages-media.ts index 4376c2c..95bf5bb 100644 --- a/src/Utils/messages-media.ts +++ b/src/Utils/messages-media.ts @@ -20,7 +20,7 @@ import { generateMessageID } from './generics' const getTmpFilesDirectory = () => tmpdir() const getImageProcessingLibrary = async() => { - const [jimp, sharp] = await Promise.all([ + const [_jimp, _sharp] = await Promise.all([ (async() => { const jimp = await ( import('jimp') @@ -36,11 +36,11 @@ const getImageProcessingLibrary = async() => { return sharp })() ]) - const sharp = sharp?.default ?? sharp + const sharp = _sharp?.default ?? _sharp if(sharp) { return { sharp } } - const jimp = jimp?.default ?? jimp + const jimp = _jimp?.default ?? _jimp if(jimp) { return { jimp } }