Skip to content
Permalink
Browse files
Teardown database
  • Loading branch information
czarniek committed Dec 1, 2019
1 parent 56a8c32 commit 2aaa837
Showing 1 changed file with 5 additions and 0 deletions.
@@ -74,6 +74,9 @@ router.get('/myfiles', async ctx => {

} catch(err) {
await ctx.render('error', {message: err.message})
} finally {
file.tearDown()
user.tearDown()
}

})
@@ -263,6 +266,8 @@ router.post('/download', async ctx => {
return ctx.redirect('/')
} catch (err) {
await ctx.render('error', { message: err.message })
} finally {
file.tearDown()
}
})

0 comments on commit 2aaa837

Please sign in to comment.