chore: Expose connection with step type instead of only connectionId
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
11bdbf1727
commit
a58411ee99
@@ -5,7 +5,8 @@ import flowType from '../types/flow';
|
||||
|
||||
const getFlowsResolver = async (req: RequestWithCurrentUser) => {
|
||||
const flows = await Flow.query()
|
||||
.where({ user_id: req.currentUser.id});
|
||||
.withGraphJoined('[steps.[connection]]')
|
||||
.where({'flows.user_id': req.currentUser.id});
|
||||
|
||||
return flows;
|
||||
}
|
||||
|
Reference in New Issue
Block a user