fix: Do not try to update ID of the flow

This commit is contained in:
Faruk AYDIN
2022-03-07 18:26:41 +03:00
committed by Ömer Faruk Aydın
parent 775ac7a8b1
commit 63198a6569
@@ -18,7 +18,10 @@ const updateFlow = async (
})
.throwIfNotFound();
flow = await flow.$query().patchAndFetch(params);
flow = await flow.$query().patchAndFetch({
name: params.name,
active: params.active,
});
return flow;
};