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()
key: input.key, .patchAndFetchById(input.id, {
appKey: input.appKey, key: input.key,
connectionId: input.connection.id, appKey: input.appKey,
parameters: input.parameters, connectionId: input.connection.id,
}); parameters: input.parameters,
})
.withGraphFetched('connection');
return step; return step;
}; };