[bugfix] don't close db connection pool in upload api script
This commit is contained in:
@@ -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, {
|
||||||
|
|||||||
Reference in New Issue
Block a user