Skip to content

Commit

Permalink
Merge pull request #258 from mailjet/de-1288
Browse files Browse the repository at this point in the history
Fixed issue with sending unmodified parameters
  • Loading branch information
mgrishko authored May 1, 2024
2 parents fa5962b + 982be97 commit d8626c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions lib/mailjet/resources/contact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,15 @@ class Contact
self.public_operations = [:get, :put, :post]
self.filters = [:campaign, :contacts_list, :is_unsubscribed, :last_activity_at, :recipient, :status]
self.resourceprop = [
:created_at,
:delivered_count,
:email,
:id,
:is_opt_in_pending,
:is_spam_complaining,
:last_activity_at,
:last_update_at,
:name,
:unsubscribed_at,
:unsubscribed_by,
:is_excluded_from_campaigns
]
self.read_only_attributes = [:created_at, :last_activity_at, :last_update_at, :unsubscribed_at]

end
end
3 changes: 2 additions & 1 deletion lib/mailjet/resources/listrecipient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ class Listrecipient
self.resource_path = 'REST/listrecipient'
self.public_operations = [:get, :put, :post, :delete]
self.filters = [:active, :blocked, :contact, :contact_email, :contacts_list, :last_activity_at, :list_name, :opened, :status, :unsub]
self.resourceprop = [:contact, :id, :is_active, :is_unsubscribed, :list, :unsubscribed_at, :contact_id, :list_id, 'ContactID', 'ListID', 'ContactALT', 'ListALT']
self.resourceprop = [:contact, :id, :is_active, :is_unsubscribed, :list, :contact_id, :list_id, 'ContactID', 'ListID', 'ContactALT', 'ListALT']

self.read_only_attributes = [:subscribed_at, :unsubscribed_at]
end
end
2 changes: 1 addition & 1 deletion lib/mailjet/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Mailjet
VERSION = "1.7.10"
VERSION = "1.7.11"
end

0 comments on commit d8626c4

Please sign in to comment.