[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 }))
.on('error', (error) => console.error('Stringify error:', error));
outputStream.on('finish', () => {
ClosePool();
}).on('error', (error) => {
ClosePool();
});
// outputStream.on('finish', () => {
// ClosePool();
// }).on('error', (error) => {
// ClosePool();
// });
return new Response(outputStream as any, {