Fix TypeScript errors for build

This commit is contained in:
Jannik committed 2026-10-03 15:49:21 +02:00
1 parent 366072d023
commit 6dd4a45e1c
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -127,7 +127,7 @@ export async function GET(
const fileStream = fs.createReadStream(filePath, { start, end });
const webStream = new ReadableStream({
start(controller) {
fileStream.on('data', (chunk) => controller.enqueue(new Uint8Array(chunk)));
fileStream.on('data', (chunk) => controller.enqueue(new Uint8Array(chunk as Buffer)));
fileStream.on('end', () => controller.close());
fileStream.on('error', (err) => controller.error(err));
},