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

@@ -559,13 +559,13 @@
message: `Really drop collection ${data.pureName}?`,
onConfirm: async () => {
const dbid = _.pick(data, ['conid', 'database']);
await axiosInstance.request({
await axiosInstance().request({
url: 'database-connections/run-script',
method: 'post',
params: dbid,
data: { sql: `db.dropCollection('${data.pureName}')` },
});
axiosInstance.post('database-connections/sync-model', dbid);
axiosInstance().post('database-connections/sync-model', dbid);
},
});
} else {