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

@@ -21,7 +21,7 @@ export async function alterDatabaseDialog(conid, database, updateFunc) {
sql,
recreates,
onConfirm: async () => {
const resp = await axiosInstance.request({
const resp = await axiosInstance().request({
url: 'database-connections/run-script',
method: 'post',
params: {
@@ -30,7 +30,7 @@ export async function alterDatabaseDialog(conid, database, updateFunc) {
},
data: { sql },
});
await axiosInstance.post('database-connections/sync-model', { conid, database });
await axiosInstance().post('database-connections/sync-model', { conid, database });
},
engine: driver.engine,
});