Open jypelle opened 5 years ago
type FavoritePlaylistId struct { UserId string PlaylistId string } type FavoritePlaylistEntity struct { Id FavoritePlaylistId `storm:"id"` UpdateTs int64 `storm:"index"` UserId string `storm:"index"` PlaylistId string `storm:"index"` }
Steps to reproduce:
I think there is a pb when you close and reopen the database. Don't know if it's a bbolt issue or a storm issue.
Found a workaround replacing:
Id FavoritePlaylistId `storm:"id"`
With
Id string `storm:"id"`
And calculate Id with concatenation (Id= UserId+':'+PlaylistId)
Steps to reproduce:
I think there is a pb when you close and reopen the database. Don't know if it's a bbolt issue or a storm issue.
Found a workaround replacing:
With
And calculate Id with concatenation (Id= UserId+':'+PlaylistId)