We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aeaf38f commit 8b0b59dCopy full SHA for 8b0b59d
1 file changed
src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts
@@ -26,7 +26,7 @@ import axios from 'axios';
26
import { proto } from 'baileys';
27
import dayjs from 'dayjs';
28
import FormData from 'form-data';
29
-import Jimp from 'jimp';
+import Jimp, { MIME_PNG } from 'jimp';
30
import Long from 'long';
31
import mimeTypes from 'mime-types';
32
import path from 'path';
@@ -2103,7 +2103,7 @@ export class ChatwootService {
2103
const img = await Jimp.read(fileData);
2104
await img.cover(320, 180);
2105
2106
- const processedBuffer = await img.getBufferAsync(Jimp.MIME_PNG);
+ const processedBuffer = await img.getBufferAsync(MIME_PNG);
2107
2108
const fileStream = new Readable();
2109
fileStream._read = () => {}; // _read is required but you can noop it
0 commit comments