Skip to content

Commit 006d66e

Browse files
fix(GeodeStore): connect returns ping_task
1 parent 1decaf1 commit 006d66e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/stores/geode.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ export const useGeodeStore = defineStore("geode", {
4646
actions: {
4747
ping_task() {
4848
setInterval(() => {
49-
if (this.status == Status.CONNECTED) {
50-
this.do_ping()
51-
}
49+
this.do_ping()
5250
}, 10 * 1000)
5351
},
5452
do_ping() {
@@ -86,7 +84,7 @@ export const useGeodeStore = defineStore("geode", {
8684
},
8785
connect() {
8886
console.log("[GEODE] Connecting to geode microservice...")
89-
return this.do_ping()
87+
return this.ping_task()
9088
},
9189
request(schema, params, callbacks = {}) {
9290
console.log("[GEODE] Request:", schema.$id)

0 commit comments

Comments
 (0)