feat: Implement updateFlowStatus mutation

This commit is contained in:
Faruk AYDIN
2022-03-07 20:35:05 +03:00
committed by Ömer Faruk Aydın
parent 63198a6569
commit 64011b5c4b
4 changed files with 36 additions and 4 deletions

View File

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