1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-03-03 14:24:06 +00:00

Compare commits

3 الالتزامات
2.3.1 ... 2.3.2

المؤلف SHA1 الرسالة التاريخ
Adam Cooke
66d26c8d4f Merge pull request #2834 from postalserver/release-please--branches--main
chore(main): release 2.3.2
2024-03-01 14:44:42 +00:00
github-actions[bot]
343292bbde chore(main): release 2.3.2 2024-03-01 13:15:31 +00:00
Adam Cooke
694240ddcd fix: truncate output and details in deliveries to 250 characters
closes #2831
2024-03-01 13:14:48 +00:00
3 ملفات معدلة مع 15 إضافات و1 حذوفات

عرض الملف

@@ -1,3 +1,3 @@
{ {
".": "2.3.1" ".": "2.3.2"
} }

عرض الملف

@@ -2,6 +2,13 @@
This file contains all the latest changes and updates to Postal. This file contains all the latest changes and updates to Postal.
## [2.3.2](https://github.com/postalserver/postal/compare/2.3.1...2.3.2) (2024-03-01)
### Bug Fixes
* truncate output and details in deliveries to 250 characters ([694240d](https://github.com/postalserver/postal/commit/694240ddcdef1df9b32888de8fb743d2dee86462)), closes [#2831](https://github.com/postalserver/postal/issues/2831)
## [2.3.1](https://github.com/postalserver/postal/compare/2.3.0...2.3.1) (2024-02-23) ## [2.3.1](https://github.com/postalserver/postal/compare/2.3.0...2.3.1) (2024-02-23)

عرض الملف

@@ -7,7 +7,14 @@ module Postal
def self.create(message, attributes = {}) def self.create(message, attributes = {})
attributes = message.database.stringify_keys(attributes) attributes = message.database.stringify_keys(attributes)
attributes = attributes.merge("message_id" => message.id, "timestamp" => Time.now.to_f) attributes = attributes.merge("message_id" => message.id, "timestamp" => Time.now.to_f)
# Ensure that output and details don't overflow their columns. We don't need
# these values to store more than 250 characters.
attributes["output"] = attributes["output"][0, 250] if attributes["output"]
attributes["details"] = attributes["details"][0, 250] if attributes["details"]
id = message.database.insert("deliveries", attributes) id = message.database.insert("deliveries", attributes)
delivery = Delivery.new(message, attributes.merge("id" => id)) delivery = Delivery.new(message, attributes.merge("id" => id))
delivery.update_statistics delivery.update_statistics
delivery.send_webhooks delivery.send_webhooks