1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: correctly parse os and editor for chrome plugin

fix: handle last project special keyword
This commit is contained in:
Ferdinand Mütsch
2023-07-09 10:28:23 +02:00
parent 37e6acd058
commit 38286c7f3a
7 changed files with 743 additions and 720 deletions

View File

@@ -64,6 +64,7 @@ func (srv *HeartbeatService) InsertBatch(heartbeats []*models.Heartbeat) error {
filteredHeartbeats := make([]*models.Heartbeat, 0, len(heartbeats))
for _, hb := range heartbeats {
if !hashes.Contain(hb.Hash) {
hb = hb.Sanitize()
filteredHeartbeats = append(filteredHeartbeats, hb)
hashes.Add(hb.Hash)
}