mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-06 14:05:20 +02:00
fix: ruby.rails.security.brakeman.check-unscoped-find.check-unscoped-find-app-controllers-api-v1-auth_controller.rb
This commit is contained in:
parent
321a343df4
commit
afc1f1db92
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ module Api
|
|||
access_token.revoke
|
||||
|
||||
# Update device last seen
|
||||
user = User.find(access_token.resource_owner_id)
|
||||
user = current_user.users.find(access_token.resource_owner_id)
|
||||
device = user.mobile_devices.find_by(device_id: params[:device][:device_id])
|
||||
device&.update_last_seen!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue