Merge pull request #458 from xxchan/xxchan/perfect-bobolink

fix: when importing from wakapi, os & editor are reversed
This commit is contained in:
Ferdinand Mütsch 2023-01-20 10:12:36 +01:00 committed by GitHub
commit 0160a9ae52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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{