Skip to content

Commit

Permalink
fix (artifacts): delete artifacts of a case
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Nov 6, 2021
1 parent 5afdee0 commit b8194f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/adonisjs/app/Controllers/Http/v1/CaseController.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,12 @@ class CaseController {
let path = Helpers.publicPath(_artifacts[i].relative_path)
Drive.delete(path)
}

console.log('================= deleting the directory')
let dir_delete = Helpers.publicPath('/resources/artifacts/cases/') + c.id
console.log(dir_delete)
Drive.delete(dir_delete)

await c.delete(trx)

trx.commit()
Expand Down

0 comments on commit b8194f1

Please sign in to comment.