mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Merge pull request #271 from Hestia-Homes/feature/subtask_tasks
Some checks failed
Test Suite / unit-tests (push) Has been cancelled
Some checks failed
Test Suite / unit-tests (push) Has been cancelled
order by job started and not job updated time
This commit is contained in:
commit
4561e61968
2 changed files with 2 additions and 2 deletions
|
|
@ -31,7 +31,7 @@ export async function GET(
|
|||
.leftJoin(subTasks, eq(subTasks.taskId, tasks.id))
|
||||
.where(eq(tasks.sourceId, portfolioId))
|
||||
.groupBy(tasks.id)
|
||||
.orderBy(desc(tasks.updatedAt))
|
||||
.orderBy(desc(tasks.jobStarted))
|
||||
.limit(limit)
|
||||
.offset(offset);
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ export async function GET(
|
|||
.select()
|
||||
.from(subTasks)
|
||||
.where(eq(subTasks.taskId, taskId))
|
||||
.orderBy(subTasks.updatedAt);
|
||||
.orderBy(subTasks.jobStarted);
|
||||
|
||||
return NextResponse.json(taskSubTasks);
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue