fixed database connection ping

This commit is contained in:
Jan Prochazka
2020-05-21 21:29:14 +02:00
parent c81b50bb90
commit 6725150b1d

View File

@@ -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);