fix: when importing from wakapi, os & editor are reversed

This commit is contained in:
xxchan 2023-01-19 23:52:53 +01:00
parent a1048d480a
commit 9751f8d11d
1 changed files with 2 additions and 2 deletions

View File

@ -284,8 +284,8 @@ func mapHeartbeat(
// try to parse id as an actual user agent string (as returned by wakapi)
if opSys, editor, err := utils.ParseUserAgent(entry.UserAgentId); err == nil {
ua = &wakatime.UserAgentEntry{
Editor: opSys,
Os: editor,
Editor: editor,
Os: opSys,
}
} else {
ua = &wakatime.UserAgentEntry{