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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user