electron app starting

This commit is contained in:
Jan Prochazka
2021-12-16 11:46:33 +01:00
parent 0a7c56dace
commit e636987f31
60 changed files with 132 additions and 129 deletions

View File

@@ -3,14 +3,14 @@ import { openedConnections, currentDatabase } from '../stores';
import axiosInstance from './axiosInstance';
const doServerPing = value => {
axiosInstance.post('server-connections/ping', { connections: value });
axiosInstance().post('server-connections/ping', { connections: value });
};
const doDatabasePing = value => {
const database = _.get(value, 'name');
const conid = _.get(value, 'connection._id');
if (conid && database) {
axiosInstance.post('database-connections/ping', { conid, database });
axiosInstance().post('database-connections/ping', { conid, database });
}
};