single database fixes

This commit is contained in:
Jan Prochazka
2022-05-22 10:17:15 +02:00
parent 4098c4e504
commit fb61f263a6
5 changed files with 66 additions and 14 deletions

View File

@@ -1,6 +1,13 @@
import _ from 'lodash';
import { openedConnections, currentDatabase } from '../stores';
import { apiCall } from './api';
import { getConnectionList } from './metadataLoaders';
// const doServerPing = async value => {
// const connectionList = getConnectionList();
// const connections = value.filter(id => !connectionList.find(x => x._id == id)?.singleDatabase);
// apiCall('server-connections/ping', { connections });
// };
const doServerPing = value => {
apiCall('server-connections/ping', { connections: value });