fix 500s again try 2

This commit is contained in:
Echo 2025-07-04 13:48:30 -04:00
parent 8b9e4ee0d4
commit a0cc474d1a
No known key found for this signature in database

View file

@ -80,15 +80,28 @@ module Api
heartbeats: heartbeats.map do |hb|
{
id: hb.id,
time: hb.time.utc.iso8601,
time: Time.at(hb.time).utc.iso8601,
project: hb.project,
language: hb.language,
file: hb.file,
branch: hb.branch,
category: hb.category,
dependencies: hb.dependencies,
editor: hb.editor,
operating_system: hb.operating_system,
entity: hb.entity,
language: hb.language,
machine: hb.machine,
duration: hb.duration,
is_debugging: hb.is_debugging
operating_system: hb.operating_system,
type: hb.type,
user_agent: hb.user_agent,
line_additions: hb.line_additions,
line_deletions: hb.line_deletions,
lineno: hb.lineno,
lines: hb.lines,
cursorpos: hb.cursorpos,
project_root_count: hb.project_root_count,
is_write: hb.is_write,
source_type: hb.source_type,
ysws_program: hb.ysws_program,
ip_address: hb.ip_address
}
end,
total_heartbeats: heartbeats.count,