fix: not return
This commit is contained in:
parent
8032906a2d
commit
d2f068b341
1 changed files with 3 additions and 3 deletions
|
|
@ -506,7 +506,7 @@ export class RequestListController extends Controller {
|
||||||
) {
|
) {
|
||||||
if (!payload.responsibleUserId) payload.responsibleUserId = undefined;
|
if (!payload.responsibleUserId) payload.responsibleUserId = undefined;
|
||||||
|
|
||||||
await prisma.$transaction(async (tx) => {
|
return await prisma.$transaction(async (tx) => {
|
||||||
const record = await tx.requestWorkStepStatus.upsert({
|
const record = await tx.requestWorkStepStatus.upsert({
|
||||||
include: {
|
include: {
|
||||||
requestWork: true,
|
requestWork: true,
|
||||||
|
|
@ -592,9 +592,9 @@ export class RequestListController extends Controller {
|
||||||
where: { id: { in: completed } },
|
where: { id: { in: completed } },
|
||||||
data: { requestDataStatus: RequestDataStatus.Completed },
|
data: { requestDataStatus: RequestDataStatus.Completed },
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
return record;
|
return record;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue