Fix unable to reject auto-matched transfers #2102

Merged
tonyvince merged 2 commits from fix-2099 into main 2025-04-14 21:05:25 +08:00
tonyvince commented 2025-04-13 22:14:17 +08:00 (Migrated from github.com)

Fix #2099

Fix #2099
tonyvince commented 2025-04-13 22:16:29 +08:00 (Migrated from github.com)

We call destroy! here when rejecting a transfer, which freezes the object. Trying to update the object after freezing results in the error FrozenError (can't modify frozen attributes)

We call `destroy!` [here](https://github.com/maybe-finance/maybe/blob/main/app/models/transfer.rb#L52) when rejecting a transfer, which freezes the object. Trying to update the object after freezing results in the error FrozenError (can't modify frozen attributes)
zachgoll (Migrated from github.com) approved these changes 2025-04-14 20:43:46 +08:00
zachgoll (Migrated from github.com) left a comment

Looks good!

Looks good!
Sign in to join this conversation.