diff --git a/patches/@whiskeysockets__baileys@7.0.0-rc.9.patch b/patches/@whiskeysockets__baileys@7.0.0-rc.9.patch index e4ed4eeae52..49c51b1dff0 100644 --- a/patches/@whiskeysockets__baileys@7.0.0-rc.9.patch +++ b/patches/@whiskeysockets__baileys@7.0.0-rc.9.patch @@ -24,13 +24,11 @@ index 0d32dfb4882dfe029ba8804772d7d89404b08e76..73809fcd1d52362aef0c35cb7416c29d // eslint-disable-next-line @typescript-eslint/no-explicit-any let result; try { -- const stream = createReadStream(filePath); -+ const body = await fs.readFile(filePath); + const stream = createReadStream(filePath); const response = await fetch(url, { - dispatcher: fetchAgent, method: 'POST', -- body: stream, -+ body, + body: stream, headers: { ...(() => { const hdrs = options?.headers; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a7f9818cf5d..1d72f26a28d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,7 +29,7 @@ packageExtensionsChecksum: sha256-n+P/SQo4Pf+dHYpYn1Y6wL4cJEVoVzZ835N0OEp4TM8= patchedDependencies: '@whiskeysockets/baileys@7.0.0-rc.9': - hash: c79c66180c377cf57f4dd1657c85b572fafb3cf9667ea36af5d4a991eb6bb709 + hash: 5a0b2527947a3aabf3c7f11cd6ff61e4ba7b5a2c13516fec4cb275dc63bd0308 path: patches/@whiskeysockets__baileys@7.0.0-rc.9.patch importers: @@ -1226,7 +1226,7 @@ importers: dependencies: '@whiskeysockets/baileys': specifier: 7.0.0-rc.9 - version: 7.0.0-rc.9(patch_hash=c79c66180c377cf57f4dd1657c85b572fafb3cf9667ea36af5d4a991eb6bb709)(audio-decode@2.2.3)(jimp@1.6.1)(sharp@0.34.5) + version: 7.0.0-rc.9(patch_hash=5a0b2527947a3aabf3c7f11cd6ff61e4ba7b5a2c13516fec4cb275dc63bd0308)(audio-decode@2.2.3)(jimp@1.6.1)(sharp@0.34.5) jimp: specifier: ^1.6.1 version: 1.6.1 @@ -11428,7 +11428,7 @@ snapshots: '@wasm-audio-decoders/common': 9.0.7 optional: true - '@whiskeysockets/baileys@7.0.0-rc.9(patch_hash=c79c66180c377cf57f4dd1657c85b572fafb3cf9667ea36af5d4a991eb6bb709)(audio-decode@2.2.3)(jimp@1.6.1)(sharp@0.34.5)': + '@whiskeysockets/baileys@7.0.0-rc.9(patch_hash=5a0b2527947a3aabf3c7f11cd6ff61e4ba7b5a2c13516fec4cb275dc63bd0308)(audio-decode@2.2.3)(jimp@1.6.1)(sharp@0.34.5)': dependencies: '@cacheable/node-cache': 1.7.6 '@hapi/boom': 9.1.4