Run rubocop on all files

This commit is contained in:
2023-06-08 21:57:54 +10:00
parent 6a2bc82e3b
commit 9d9d8ccf6d
65 changed files with 114 additions and 158 deletions

View File

@@ -4,14 +4,14 @@ require "connection_pool"
require "que"
require "hanami/boot"
uri = URI.parse(ENV['DATABASE_URL'])
uri = URI.parse(ENV["DATABASE_URL"])
Que.connection = ConnectionPool.new(size: 10) do
PG::Connection.open(
host: uri.host,
user: uri.user,
host: uri.host,
user: uri.user,
password: uri.password,
port: uri.port || 5432,
dbname: uri.path[1..-1]
port: uri.port || 5432,
dbname: uri.path[1..]
)
end
end