mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
People: Refactor album, subject, and label previews #22
This commit is contained in:
@@ -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})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user