Update Fix
This commit is contained in:
6
node_modules/mysql2/lib/promise/pool.js
generated
vendored
6
node_modules/mysql2/lib/promise/pool.js
generated
vendored
@@ -85,6 +85,12 @@ class PromisePool extends EventEmitter {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
async [Symbol.asyncDispose]() {
|
||||
if (!this.pool._closed) {
|
||||
await this.end();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
(function (functionsToWrap) {
|
||||
|
||||
Reference in New Issue
Block a user