[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 }))
|
||||
.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, {
|
||||
|
||||
Reference in New Issue
Block a user