fix(typesense): correctly convert date values for typesense
Resolves https://kolaente.dev/vikunja/api/issues/1636
This commit is contained in:
parent
91146f139b
commit
6169c2e12e
@ -19,6 +19,7 @@ package models
|
||||
import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"code.vikunja.io/api/pkg/db"
|
||||
"code.vikunja.io/api/pkg/log"
|
||||
@ -296,6 +297,8 @@ func convertFilterValues(value interface{}) string {
|
||||
}
|
||||
|
||||
return "false"
|
||||
case time.Time:
|
||||
return strconv.FormatInt(v.Unix(), 10)
|
||||
}
|
||||
|
||||
log.Errorf("Unknown search type for value %v", value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user