mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 17:51:39 -05:00
Use as_json to export points data
This commit is contained in:
parent
36e426433e
commit
dd87f57971
1 changed files with 1 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ class Users::ExportData::Points
|
|||
end
|
||||
|
||||
def call
|
||||
points_data = Point.where(user_id: user.id).order(id: :asc)
|
||||
points_data = Point.where(user_id: user.id).order(id: :asc).as_json(except: %w[user_id])
|
||||
|
||||
return [] if points_data.empty?
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue