1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-12-01 05:43:04 +00:00

style(rubocop): Layout/MultilineMethodCallBraceLayout

هذا الالتزام موجود في:
Adam Cooke
2024-02-10 17:25:45 +00:00
الأصل 919a60116c
التزام a5d5ba5326
2 ملفات معدلة مع 3 إضافات و3 حذوفات

عرض الملف

@@ -435,8 +435,7 @@ class UnqueueMessageJob < Postal::Job
details: "An internal error occurred while sending " \ details: "An internal error occurred while sending " \
"this message. This message will be retried " \ "this message. This message will be retried " \
"automatically.", "automatically.",
output: "#{e.class}: #{e.message}", log_id: "J-#{self.id}" output: "#{e.class}: #{e.message}", log_id: "J-#{self.id}")
)
end end
end end
end end

عرض الملف

@@ -9,7 +9,8 @@ client = Mysql2::Client.new(
username: Postal.config.main_db.username, username: Postal.config.main_db.username,
password: Postal.config.main_db.password, password: Postal.config.main_db.password,
port: Postal.config.main_db.port, 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 " \ 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") "retry_after <= ADDTIME(UTC_TIMESTAMP(), '30') AND locked_at IS NULL")
puts result.to_a.first["size"] puts result.to_a.first["size"]