refactor: update attribute from its own model instead
This commit is contained in:
parent
857a098404
commit
627c6be1e0
1 changed files with 1 additions and 5 deletions
|
|
@ -231,11 +231,7 @@ export class RequestListController extends Controller {
|
||||||
) {
|
) {
|
||||||
const record = await prisma.requestWork.update({
|
const record = await prisma.requestWork.update({
|
||||||
where: { id: requestWorkId },
|
where: { id: requestWorkId },
|
||||||
data: {
|
data: { attributes: payload.attributes },
|
||||||
request: {
|
|
||||||
update: { flow: payload.attributes },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return record;
|
return record;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue