style(rubocop): Layout/MultilineMethodCallBraceLayout

This commit is contained in:
Adam Cooke
2024-02-10 17:25:45 +00:00
parent 919a60116c
commit a5d5ba5326
2 changed files with 3 additions and 3 deletions
+1 -2
View File
@@ -435,8 +435,7 @@ class UnqueueMessageJob < Postal::Job
details: "An internal error occurred while sending " \
"this message. This message will be retried " \
"automatically.",
output: "#{e.class}: #{e.message}", log_id: "J-#{self.id}"
)
output: "#{e.class}: #{e.message}", log_id: "J-#{self.id}")
end
end
end
+2 -1
View File
@@ -9,7 +9,8 @@ client = Mysql2::Client.new(
username: Postal.config.main_db.username,
password: Postal.config.main_db.password,
port: Postal.config.main_db.port,
database: Postal.config.main_db.database)
database: Postal.config.main_db.database
)
result = client.query("SELECT COUNT(id) as size FROM `queued_messages` WHERE retry_after IS NULL OR " \
"retry_after <= ADDTIME(UTC_TIMESTAMP(), '30') AND locked_at IS NULL")
puts result.to_a.first["size"]