docs/receiving.md in table_sync-4.0.0 vs docs/receiving.md in table_sync-4.1.0
- old
+ new
@@ -20,11 +20,11 @@
end
receive "User", to_table: :clients, events: %i[update destroy] do
mapping_overrides email: :project_user_email, id: :project_user_id
- only :project_user_email, :project_user_id
+ only :project_user_email, :project_user_id, :project_id
target_keys :project_id, :project_user_id
rest_key :project_user_rest
version_key :project_user_version
additional_data do |project_id:|
@@ -35,10 +35,10 @@
{ created_at: Time.current }
end
end
receive "User", to_model: CustomModel.new(:users) do
- rest_key nil
+ rest_key false
end
end
```
### Handler class (`Rabbit::Handler::MainProject::TableSync`)