Compare commits
1 commit
master
...
fix/simpl-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
054efd14ed |
2 changed files with 2 additions and 2 deletions
|
|
@ -105,7 +105,7 @@ export async function getSubtasks(parentId: string) {
|
|||
.select()
|
||||
.from(tasks)
|
||||
.where(eq(tasks.parentId, parentId))
|
||||
.orderBy(asc(tasks.position));
|
||||
.orderBy(asc(tasks.completed), asc(tasks.position));
|
||||
}
|
||||
|
||||
export async function getTaskById(id: string) {
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ export async function syncWidgetData(): Promise<void> {
|
|||
.select({ id: tasks.id, title: tasks.title, completed: tasks.completed })
|
||||
.from(tasks)
|
||||
.where(eq(tasks.parentId, task.id))
|
||||
.orderBy(asc(tasks.position));
|
||||
.orderBy(asc(tasks.completed), asc(tasks.position));
|
||||
task.subtasks = subs;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue