Backend: Refactor entity package

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer
2020-04-30 20:07:03 +02:00
parent 7d840d4a46
commit 260cca91fe
55 changed files with 329 additions and 323 deletions

View File

@@ -5,7 +5,7 @@ import (
"path"
"github.com/photoprism/photoprism/internal/config"
"github.com/photoprism/photoprism/internal/query"
"github.com/photoprism/photoprism/internal/service"
"github.com/photoprism/photoprism/pkg/fs"
"github.com/gin-gonic/gin"
@@ -23,7 +23,7 @@ func GetDownload(router *gin.RouterGroup, conf *config.Config) {
router.GET("/download/:hash", func(c *gin.Context) {
fileHash := c.Param("hash")
q := query.New(conf.Db())
q := service.Query()
f, err := q.FileByHash(fileHash)
if err != nil {