qa: Include tasks in Todo list
This commit is contained in:
parent
cb489396ab
commit
3049989ac6
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
import { writable, derived } from 'svelte/store';
|
||||
|
||||
import { getQAView, getQAWork } from '$lib/todo';
|
||||
import { getQAView, getQATodo, getQAWork } from '$lib/todo';
|
||||
|
||||
function createTodosStore() {
|
||||
const { subscribe, set, update } = writable([]);
|
||||
|
@ -15,7 +15,8 @@ function createTodosStore() {
|
|||
update,
|
||||
|
||||
refresh: async () => {
|
||||
const list = await getQAWork();
|
||||
const list = await getQATodo();
|
||||
list.push(...await getQAWork());
|
||||
update((m) => list);
|
||||
return list;
|
||||
},
|
||||
|
|
Reference in a new issue