diff --git a/src/stores/ftbot.ts b/src/stores/ftbot.ts index b83034fc..0e86d39f 100644 --- a/src/stores/ftbot.ts +++ b/src/stores/ftbot.ts @@ -696,6 +696,15 @@ export function createBotSubStore(botId: string, botName: string) { return Promise.reject(error); } }, + async getBackgroundJobs() { + try { + const { data } = await api.get('/background'); + return Promise.resolve(data); + } catch (error) { + console.error(error); + return Promise.reject(error); + } + }, async getBackgroundJobStatus(jobId: string) { try { const { data } = await api.get(`/background/${jobId}`);