[fix-check-mime-insert-document] - fix error on uploader
This commit is contained in:
parent
6d1c7f6bd3
commit
04d397a900
@ -107,7 +107,8 @@ const observePresentationConversion = (
|
||||
|
||||
if (doc.temporaryPresentationId !== temporaryPresentationId && doc.id !== tokenId) return;
|
||||
|
||||
if (doc.conversion.status === 'FILE_TOO_LARGE' || doc.conversion.status === 'UNSUPPORTED_DOCUMENT' || doc.conversion.status === 'CONVERSION_TIMEOUT') {
|
||||
if (doc.conversion.status === 'FILE_TOO_LARGE' || doc.conversion.status === 'UNSUPPORTED_DOCUMENT'
|
||||
|| doc.conversion.status === 'CONVERSION_TIMEOUT' || doc.conversion.status === "IVALID_MIME_TYPE") {
|
||||
Presentations.update({id: tokenId}, {$set: {temporaryPresentationId, renderedInToast: false}})
|
||||
onConversion(doc.conversion);
|
||||
c.stop();
|
||||
|
Loading…
Reference in New Issue
Block a user