fix: allow media upload retries

This commit is contained in:
canove
2025-05-06 08:06:05 -03:00
parent 8cc8b44724
commit f58a38fde9
4 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ export const prepareWAMessageMedia = async(
const [{ mediaUrl, directPath }] = await Promise.all([
(async() => {
const result = await options.upload(
createReadStream(encFilePath),
encFilePath,
{ fileEncSha256B64, mediaType, timeoutMs: options.mediaUploadTimeoutMs }
)
logger?.debug({ mediaType, cacheableKey }, 'uploaded media')