fix: only change status of pending task only

This commit is contained in:
Methapon2001 2024-12-25 15:37:18 +07:00
parent 23541a12bf
commit 9bc6ba2d49

View file

@ -775,6 +775,7 @@ export class UserTaskController extends Controller {
tx.task.updateMany({
where: {
taskOrderId: taskOrderId,
taskStatus: TaskStatus.Pending,
requestWorkStep: { responsibleUserId: req.user.sub },
},
data: {