fix: do not fail on wrong content type in collaborator ()

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-12-08 11:30:03 +07:00 committed by GitHub
parent 6b3ec81f63
commit 7372798546
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -45,8 +45,7 @@ export async function loadCollabYdoc (
}
if (!blob.contentType.includes('application/ydoc')) {
ctx.error('invalid content type', { contentType: blob.contentType })
return undefined
ctx.warn('invalid content type', { contentType: blob.contentType })
}
// no need to apply gc because we load existing document