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