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

@@ -130,7 +130,7 @@
}
async function handleConfirmSql(sql, createTableName) {
const resp = await axiosInstance.request({
const resp = await axiosInstance().request({
url: 'database-connections/run-script',
method: 'post',
params: {
@@ -154,14 +154,14 @@
}));
}
await axiosInstance.post('database-connections/sync-model', { conid, database });
await axiosInstance().post('database-connections/sync-model', { conid, database });
showSnackbarSuccess('Saved to database');
clearEditorData();
}
}
export async function reset() {
await axiosInstance.post('database-connections/sync-model', { conid, database });
await axiosInstance().post('database-connections/sync-model', { conid, database });
clearEditorData();
}