coopdevs / timeoverflow

🏦 ⌛ A time banking system
https://www.timeoverflow.org
GNU Affero General Public License v3.0
145 stars 67 forks source link

[FIX] Import transfer: movements & transfer with the same created_at #727

Closed franpb14 closed 8 months ago

franpb14 commented 8 months ago

Changes

Note: If we didn't want to touch the rest of the app and only make this change in the import, we could use transfer.movements.update_all(created_at: transfer.created_at) in process_row after the transfer save. However, I believe it makes more sense as I placed it, to ensure consistency between transfer and movements at all times

sseerrggii commented 8 months ago

Tested on staging :heavy_check_mark: Works fine, thanks @franpb14