qa: Include tasks in Todo list

This commit is contained in:
nemunaire 2022-11-07 12:34:16 +01:00
parent cb489396ab
commit 3049989ac6

View File

@ -1,6 +1,6 @@
import { writable, derived } from 'svelte/store'; import { writable, derived } from 'svelte/store';
import { getQAView, getQAWork } from '$lib/todo'; import { getQAView, getQATodo, getQAWork } from '$lib/todo';
function createTodosStore() { function createTodosStore() {
const { subscribe, set, update } = writable([]); const { subscribe, set, update } = writable([]);
@ -15,7 +15,8 @@ function createTodosStore() {
update, update,
refresh: async () => { refresh: async () => {
const list = await getQAWork(); const list = await getQATodo();
list.push(...await getQAWork());
update((m) => list); update((m) => list);
return list; return list;
}, },