fix: Do not try to update ID of the flow
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
775ac7a8b1
commit
63198a6569
@@ -18,7 +18,10 @@ const updateFlow = async (
|
|||||||
})
|
})
|
||||||
.throwIfNotFound();
|
.throwIfNotFound();
|
||||||
|
|
||||||
flow = await flow.$query().patchAndFetch(params);
|
flow = await flow.$query().patchAndFetch({
|
||||||
|
name: params.name,
|
||||||
|
active: params.active,
|
||||||
|
});
|
||||||
|
|
||||||
return flow;
|
return flow;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user