chore: Do not override query method for findOne query errors
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
3e4768c106
commit
79b12ac9e6
@@ -16,7 +16,7 @@ const createStepResolver = async (params: Params, req: RequestWithCurrentUser) =
|
||||
const flow = await Flow.query().findOne({
|
||||
id: params.flowId,
|
||||
user_id: req.currentUser.id
|
||||
})
|
||||
}).throwIfNotFound();
|
||||
|
||||
const step = await Step.query().insertAndFetch({
|
||||
flowId: flow.id,
|
||||
|
Reference in New Issue
Block a user