feat: add connection in updateStep response

This commit is contained in:
Ali BARIN
2022-02-06 22:41:59 +01:00
committed by Ömer Faruk Aydın
parent 5aae9a60f4
commit 873421f1e9

View File

@@ -31,12 +31,14 @@ const updateStepResolver = async (
}) })
.throwIfNotFound(); .throwIfNotFound();
step = await Step.query().patchAndFetchById(input.id, { step = await Step.query()
.patchAndFetchById(input.id, {
key: input.key, key: input.key,
appKey: input.appKey, appKey: input.appKey,
connectionId: input.connection.id, connectionId: input.connection.id,
parameters: input.parameters, parameters: input.parameters,
}); })
.withGraphFetched('connection');
return step; return step;
}; };