refactor: update attribute from its own model instead

This commit is contained in:
Methapon Metanipat 2024-11-19 14:17:01 +07:00
parent 857a098404
commit 627c6be1e0

View file

@ -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;