feat: add connection in updateStep response
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
5aae9a60f4
commit
873421f1e9
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user