chore: Introduce has many steps through flows for user model
This commit is contained in:

committed by
Ömer Faruk Aydın

parent
700d0bfd32
commit
3429784309
@@ -10,8 +10,8 @@ const deleteStepResolver = async (
|
||||
params: Params,
|
||||
req: RequestWithCurrentUser
|
||||
) => {
|
||||
// TODO: This logic should be revised by using current user
|
||||
await Step.query()
|
||||
await req.currentUser
|
||||
.$relatedQuery('steps')
|
||||
.delete()
|
||||
.findOne({
|
||||
id: params.id,
|
||||
|
Reference in New Issue
Block a user