fix: strip sub-second precision from incoming listens

This commit is contained in:
Gabe Farrell 2025-06-17 17:08:09 -04:00
parent 80b6f4deaa
commit 31d57fd79a
2 changed files with 4 additions and 1 deletions

View file

@ -71,6 +71,9 @@ func SubmitListen(ctx context.Context, store db.DB, opts SubmitListenOpts) error
return errors.New("track name and artist are required")
}
// bandaid to ensure new activity does not have sub-second precision
opts.Time = opts.Time.Truncate(time.Second)
artists, err := AssociateArtists(
ctx,
store,