mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 19:03:58 +00:00
fixed connection refresh
This commit is contained in:
@@ -28,6 +28,7 @@ module.exports = {
|
|||||||
handle_status(conid, database, { status }) {
|
handle_status(conid, database, { status }) {
|
||||||
const existing = this.opened.find((x) => x.conid == conid && x.database == database);
|
const existing = this.opened.find((x) => x.conid == conid && x.database == database);
|
||||||
if (!existing) return;
|
if (!existing) return;
|
||||||
|
if (existing.status == status) return;
|
||||||
existing.status = status;
|
existing.status = status;
|
||||||
socket.emitChanged(`database-status-changed-${conid}-${database}`);
|
socket.emitChanged(`database-status-changed-${conid}-${database}`);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ async function handleIncrementalRefresh() {
|
|||||||
analysedStructure = newStructure;
|
analysedStructure = newStructure;
|
||||||
process.send({ msgtype: 'structure', structure: analysedStructure });
|
process.send({ msgtype: 'structure', structure: analysedStructure });
|
||||||
}
|
}
|
||||||
|
setStatusName('ok');
|
||||||
}
|
}
|
||||||
|
|
||||||
function setStatus(status) {
|
function setStatus(status) {
|
||||||
|
|||||||
Reference in New Issue
Block a user