Fix ts errors
This commit is contained in:
parent
a00cc7e3aa
commit
4cbc3163de
1 changed files with 2 additions and 1 deletions
|
|
@ -252,9 +252,10 @@ async function convertViaSandbox(buffer: Buffer, extension: string): Promise<Buf
|
|||
const timeout = setTimeout(() => controller.abort(), PROCESSING_TIMEOUT_MS);
|
||||
|
||||
try {
|
||||
const body = new Uint8Array(buffer);
|
||||
const response = await fetch(`${SANDBOX_URL}/convert?ext=${extension}`, {
|
||||
method: 'POST',
|
||||
body: buffer,
|
||||
body,
|
||||
signal: controller.signal,
|
||||
headers: { 'Content-Type': 'application/octet-stream' },
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue