mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 04:16:00 +00:00
fix
This commit is contained in:
@@ -302,6 +302,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async checkUnsavedConnectionsLimit() {
|
async checkUnsavedConnectionsLimit() {
|
||||||
|
if (!this.datastore) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const MAX_UNSAVED_CONNECTIONS = 5;
|
const MAX_UNSAVED_CONNECTIONS = 5;
|
||||||
await this.datastore.transformAll(connections => {
|
await this.datastore.transformAll(connections => {
|
||||||
const count = connections.filter(x => x.unsaved).length;
|
const count = connections.filter(x => x.unsaved).length;
|
||||||
|
|||||||
Reference in New Issue
Block a user