Skip to content

Commit

Permalink
chore: add projectId for updating task's order
Browse files Browse the repository at this point in the history
  • Loading branch information
hudy9x committed Jan 26, 2024
1 parent 5eccb44 commit 60fc634
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/be-gateway/src/routes/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ export class TestController extends BaseController {
}
@Get('/update-task-order')
async updateTaskOrder(@Res() res: ExpressResponse) {
const { projectId } = this.req.query as { projectId: string }
const tasks = await pmClient.task.findMany({
// where: {
// order: { isSet: false }
// },
where: {
projectId
},
orderBy: {
createdAt: 'asc'
}
Expand Down

0 comments on commit 60fc634

Please sign in to comment.