1
0
Fork 0
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:
kira-offgrid 2025-07-22 04:51:06 +00:00
parent 321a343df4
commit afc1f1db92

View file

@ -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!