feat: Implement updateFlowStatus mutation
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
63198a6569
commit
64011b5c4b
@@ -3,7 +3,6 @@ import Context from '../../types/express/context';
|
||||
type Params = {
|
||||
id: string;
|
||||
name: string;
|
||||
active: boolean;
|
||||
};
|
||||
|
||||
const updateFlow = async (
|
||||
@@ -20,7 +19,6 @@ const updateFlow = async (
|
||||
|
||||
flow = await flow.$query().patchAndFetch({
|
||||
name: params.name,
|
||||
active: params.active,
|
||||
});
|
||||
|
||||
return flow;
|
||||
|
Reference in New Issue
Block a user