fix: only change status of pending task only
This commit is contained in:
parent
23541a12bf
commit
9bc6ba2d49
1 changed files with 1 additions and 0 deletions
|
|
@ -775,6 +775,7 @@ export class UserTaskController extends Controller {
|
|||
tx.task.updateMany({
|
||||
where: {
|
||||
taskOrderId: taskOrderId,
|
||||
taskStatus: TaskStatus.Pending,
|
||||
requestWorkStep: { responsibleUserId: req.user.sub },
|
||||
},
|
||||
data: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue