alphagov/forms-api

database connections not being closed when error occurs

james-sheppard-gov-uk opened this issue · 0 comments

forms-api/lib/api_v1.rb

Lines 30 to 32 in c53e2f5

after do
@database.disconnect
end

https://github.com/ruby-grape/grape#before-after-and-finally

Presumably finally should be used instead.