[bugfix] don't close db connection pool in upload api script

This commit is contained in:
2026-03-21 20:52:39 -04:00
parent 4c6922f76b
commit b871385fba

View File

@@ -74,11 +74,11 @@ export const POST: APIRoute = async ({ request }) => {
.pipe(stringify({ header: true })) .pipe(stringify({ header: true }))
.on('error', (error) => console.error('Stringify error:', error)); .on('error', (error) => console.error('Stringify error:', error));
outputStream.on('finish', () => { // outputStream.on('finish', () => {
ClosePool(); // ClosePool();
}).on('error', (error) => { // }).on('error', (error) => {
ClosePool(); // ClosePool();
}); // });
return new Response(outputStream as any, { return new Response(outputStream as any, {