mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-05 01:43:11 +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))
|
keys := make([][]byte, len(ids))
|
||||||
|
|
||||||
i := 0
|
i := 0
|
||||||
for id, _ := range ids {
|
for id := range ids {
|
||||||
// Delete from parent:parentId:table (ZSet)
|
// Delete from parent:parentId:table (ZSet)
|
||||||
if r.parentTable != "" {
|
if r.parentTable != "" {
|
||||||
parentKey := []byte(fmt.Sprintf("%s:%s:%s", r.table, id, r.parentIdField))
|
parentKey := []byte(fmt.Sprintf("%s:%s:%s", r.table, id, r.parentIdField))
|
||||||
@ -183,6 +183,8 @@ func toScore(value interface{}) int64 {
|
|||||||
}
|
}
|
||||||
case time.Time:
|
case time.Time:
|
||||||
return utils.ToMillis(v)
|
return utils.ToMillis(v)
|
||||||
|
default:
|
||||||
|
panic("Not implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user