Some clean-up in criteria package

This commit is contained in:
Deluan
2022-10-03 12:25:04 -04:00
parent 12b4a48842
commit bbd3882a75
4 changed files with 14 additions and 16 deletions
-10
View File
@@ -1,9 +1,7 @@
package criteria
import (
"fmt"
"strings"
"time"
"github.com/navidrome/navidrome/log"
)
@@ -62,11 +60,3 @@ func mapFields(expr map[string]interface{}) map[string]interface{} {
}
return m
}
type Time time.Time
func (t Time) MarshalJSON() ([]byte, error) {
//do your serializing here
stamp := fmt.Sprintf("\"%s\"", time.Time(t).Format("2006-01-02"))
return []byte(stamp), nil
}