Skip to content
Snippets Groups Projects
Commit d98a15b6 authored by Leah Tacke genannt Unterberg's avatar Leah Tacke genannt Unterberg
Browse files

added logging to api reconnect

parent 40b6a5df
No related branches found
No related tags found
No related merge requests found
Pipeline #481808 passed
......@@ -13,7 +13,8 @@ const constants = useConstantsStore()
const {schemaReady, apiStatus} = storeToRefs(store)
async function retestAPI() {
await store.testAPI()
const apiStatus = await store.testAPI()
console.log('Attempted backend reconnect:', apiStatus)
}
onMounted(() => constants.initViaAPI())
......
......@@ -23,7 +23,7 @@ export const useMainStore = defineStore('main', () => {
const schemaReady = computed(() => sessionReady.value && (originalDBSchema.value != null))
async function testAPI() {
if (apiStatus === "disconnected")
if (apiStatus.value === "disconnected")
apiStatus.value = "connecting"
const r = await keepAlive()
if (r?.data) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment