fix: set default status code

This commit is contained in:
Adhiraj Singh
2022-06-24 12:14:10 +05:30
parent 4ff858ab82
commit 92960bbf04

View File

@@ -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 }
) )
} }