mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-10 10:21:55 +00:00
SetInterval may be overridden by nodejs types...
ensure to use window
This commit is contained in:
parent
9572b90a82
commit
f5d7c28ae8
|
@ -151,7 +151,7 @@ export const usePairlistConfigStore = defineStore(
|
||||||
const { job_id: jobId } = await botStore.activeBot.evaluatePairlist(payload);
|
const { job_id: jobId } = await botStore.activeBot.evaluatePairlist(payload);
|
||||||
console.log('jobId', jobId);
|
console.log('jobId', jobId);
|
||||||
|
|
||||||
intervalId.value = setInterval(async () => {
|
intervalId.value = window.setInterval(async () => {
|
||||||
const res = await botStore.activeBot.getBackgroundJobStatus(jobId);
|
const res = await botStore.activeBot.getBackgroundJobStatus(jobId);
|
||||||
if (!res.running) {
|
if (!res.running) {
|
||||||
clearInterval(intervalId.value);
|
clearInterval(intervalId.value);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user