Merge branch 'develop'
This commit is contained in:
commit
fd8a932e95
1 changed files with 8 additions and 0 deletions
|
|
@ -507,6 +507,14 @@ export class TaskController extends Controller {
|
|||
}
|
||||
|
||||
await Promise.all([deleteFolder(fileLocation.task.attachment(taskOrderId))]);
|
||||
await Promise.all(
|
||||
record.taskList.map((v) =>
|
||||
tx.task.update({
|
||||
where: { id: v.id },
|
||||
data: { requestWorkStep: { update: { workStatus: "Ready" } } },
|
||||
}),
|
||||
),
|
||||
);
|
||||
await tx.taskOrder.delete({ where: { id: taskOrderId } });
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue