fix: allow media upload retries
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user