mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 15:13:57 +00:00
fixed database connection ping
This commit is contained in:
@@ -13,7 +13,7 @@ export default function ConnectionsPinger({ children }) {
|
|||||||
const database = _.get(currentDatabase, 'name');
|
const database = _.get(currentDatabase, 'name');
|
||||||
const conid = _.get(currentDatabase, 'connection._id');
|
const conid = _.get(currentDatabase, 'connection._id');
|
||||||
if (conid && database) {
|
if (conid && database) {
|
||||||
axios.post('database-connections/ping', { conid });
|
axios.post('database-connections/ping', { conid, database });
|
||||||
}
|
}
|
||||||
}, 30 * 1000);
|
}, 30 * 1000);
|
||||||
return () => window.clearInterval(handle);
|
return () => window.clearInterval(handle);
|
||||||
|
|||||||
Reference in New Issue
Block a user