mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 06:21:23 +00:00
refactor: Use first! for transfer lookup (#837)
Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
This commit is contained in:
@@ -55,7 +55,7 @@ class TransfersController < ApplicationController
|
||||
@transfer = Transfer
|
||||
.where(id: params[:id])
|
||||
.where(inflow_transaction_id: Current.family.transactions.select(:id))
|
||||
.first
|
||||
.first!
|
||||
end
|
||||
|
||||
def transfer_params
|
||||
|
||||
Reference in New Issue
Block a user