mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
fix missing category
This commit is contained in:
@@ -236,6 +236,9 @@ class Api::Hackatime::V1::HackatimeController < ApplicationController
|
||||
|
||||
parsed_ua = WakatimeService.parse_user_agent(heartbeat[:user_agent])
|
||||
|
||||
# if category is not set, just default to coding
|
||||
heartbeat[:category] ||= "coding"
|
||||
|
||||
# special case: if the entity is "test.txt", this is a test heartbeat
|
||||
if heartbeat[:entity] == "test.txt"
|
||||
source_type = :test_entry
|
||||
|
||||
Reference in New Issue
Block a user