mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 23:06:00 +00:00
electron app starting
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
|
||||
let sesid = sessionId;
|
||||
if (!sesid) {
|
||||
const resp = await axiosInstance.post('sessions/create', {
|
||||
const resp = await axiosInstance().post('sessions/create', {
|
||||
conid,
|
||||
database,
|
||||
});
|
||||
@@ -159,11 +159,11 @@
|
||||
}
|
||||
busy = true;
|
||||
timerLabel.start();
|
||||
await axiosInstance.post('sessions/execute-query', {
|
||||
await axiosInstance().post('sessions/execute-query', {
|
||||
sesid,
|
||||
sql,
|
||||
});
|
||||
await axiosInstance.post('query-history/write', {
|
||||
await axiosInstance().post('query-history/write', {
|
||||
data: {
|
||||
sql,
|
||||
conid,
|
||||
@@ -184,7 +184,7 @@
|
||||
}
|
||||
|
||||
export async function kill() {
|
||||
await axiosInstance.post('sessions/kill', {
|
||||
await axiosInstance().post('sessions/kill', {
|
||||
sesid: sessionId,
|
||||
});
|
||||
sessionId = null;
|
||||
|
||||
Reference in New Issue
Block a user