mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-16 04:00:38 +03:00
Error when trying to index on an unsupported field type
This commit is contained in:
parent
f258592285
commit
bb5d4c920d
@ -82,7 +82,7 @@ func (r *ledisRepository) DeleteAll(ids map[string]bool) error {
|
||||
keys := make([][]byte, len(ids))
|
||||
|
||||
i := 0
|
||||
for id, _ := range ids {
|
||||
for id := range ids {
|
||||
// Delete from parent:parentId:table (ZSet)
|
||||
if r.parentTable != "" {
|
||||
parentKey := []byte(fmt.Sprintf("%s:%s:%s", r.table, id, r.parentIdField))
|
||||
@ -183,6 +183,8 @@ func toScore(value interface{}) int64 {
|
||||
}
|
||||
case time.Time:
|
||||
return utils.ToMillis(v)
|
||||
default:
|
||||
panic("Not implemented")
|
||||
}
|
||||
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user