mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: set default status code
This commit is contained in:
@@ -561,7 +561,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
|||||||
const resultStr = proto.MediaRetryNotification.MediaRetryNotificationResultType[media.result]
|
const resultStr = proto.MediaRetryNotification.MediaRetryNotificationResultType[media.result]
|
||||||
throw new Boom(
|
throw new Boom(
|
||||||
`Media re-upload failed by device (${resultStr})`,
|
`Media re-upload failed by device (${resultStr})`,
|
||||||
{ data: media, statusCode: MEDIA_RETRY_STATUS_MAP[media.result] }
|
{ data: media, statusCode: MEDIA_RETRY_STATUS_MAP[media.result] || 404 }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user