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({
|
||||
where: { id: requestWorkId },
|
||||
data: {
|
||||
request: {
|
||||
update: { flow: payload.attributes },
|
||||
},
|
||||
},
|
||||
data: { attributes: payload.attributes },
|
||||
});
|
||||
|
||||
return record;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue