People: Refactor album, subject, and label previews #22

This commit is contained in:
Michael Mayer
2021-08-30 18:58:27 +02:00
parent 847f41d98c
commit bc3036599b
37 changed files with 905 additions and 496 deletions

View File

@@ -7,6 +7,8 @@ import (
"strings"
"time"
"github.com/photoprism/photoprism/internal/query"
"github.com/gin-gonic/gin"
"github.com/photoprism/photoprism/internal/acl"
"github.com/photoprism/photoprism/internal/entity"
@@ -107,6 +109,11 @@ func StartImport(router *gin.RouterGroup) {
UpdateClientConfig()
// Update album, label, and subject preview images.
if err := query.UpdatePreviews(); err != nil {
log.Errorf("import: %s (update previews)", err)
}
c.JSON(http.StatusOK, i18n.Response{Code: http.StatusOK, Msg: msg})
})
}