feat: update task status when accepted
This commit is contained in:
parent
d6703f84e6
commit
de69518c73
1 changed files with 1 additions and 0 deletions
|
|
@ -213,6 +213,7 @@ export class TaskActionController extends Controller {
|
||||||
await tx.taskOrder.update({
|
await tx.taskOrder.update({
|
||||||
where: { id: taskId },
|
where: { id: taskId },
|
||||||
data: {
|
data: {
|
||||||
|
taskStatus: "InProgress",
|
||||||
acceptedByUserId: req.user.sub,
|
acceptedByUserId: req.user.sub,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue