fix(typesense): correctly convert date values for typesense

Resolves vikunja/api#1636
This commit is contained in:
kolaente 2023-11-09 12:29:45 +01:00
parent 91146f139b
commit 6169c2e12e
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 0 deletions

View File

@ -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)