axiosInstance replaced with apiCall

This commit is contained in:
Jan Prochazka
2021-12-22 10:16:44 +01:00
parent 148af24b2c
commit f9c54cdce2
55 changed files with 257 additions and 328 deletions

View File

@@ -34,6 +34,7 @@
import { extensions } from '../stores';
import newQuery from '../query/newQuery';
import runCommand from '../commands/runCommand';
import { apiCall } from '../utility/api';
export let conid;
export let database;
@@ -62,7 +63,7 @@
// $: objectList = generateObjectList(generateIndex);
const handleRefreshDatabase = () => {
axiosInstance().post('database-connections/refresh', { conid, database });
apiCall('database-connections/refresh', { conid, database });
};
function createAddMenu() {