mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-05 08:47:12 +08:00
Also improves migrations and updates the db schema docs. Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -13,10 +13,10 @@ import (
|
||||
"github.com/photoprism/photoprism/internal/entity"
|
||||
"github.com/photoprism/photoprism/internal/event"
|
||||
"github.com/photoprism/photoprism/internal/form"
|
||||
"github.com/photoprism/photoprism/internal/get"
|
||||
"github.com/photoprism/photoprism/internal/i18n"
|
||||
"github.com/photoprism/photoprism/internal/photoprism"
|
||||
"github.com/photoprism/photoprism/internal/query"
|
||||
"github.com/photoprism/photoprism/internal/service"
|
||||
"github.com/photoprism/photoprism/pkg/clean"
|
||||
)
|
||||
|
||||
@@ -45,7 +45,7 @@ func BatchPhotosArchive(router *gin.RouterGroup) {
|
||||
|
||||
log.Infof("photos: archiving %s", clean.Log(f.String()))
|
||||
|
||||
if service.Config().BackupYaml() {
|
||||
if get.Config().BackupYaml() {
|
||||
// Fetch selection from index.
|
||||
photos, err := query.SelectedPhotos(f)
|
||||
|
||||
@@ -108,7 +108,7 @@ func BatchPhotosRestore(router *gin.RouterGroup) {
|
||||
|
||||
log.Infof("photos: restoring %s", clean.Log(f.String()))
|
||||
|
||||
if service.Config().BackupYaml() {
|
||||
if get.Config().BackupYaml() {
|
||||
// Fetch selection from index.
|
||||
photos, err := query.SelectedPhotos(f)
|
||||
|
||||
@@ -346,7 +346,7 @@ func BatchPhotosDelete(router *gin.RouterGroup) {
|
||||
return
|
||||
}
|
||||
|
||||
conf := service.Config()
|
||||
conf := get.Config()
|
||||
|
||||
if conf.ReadOnly() || !conf.Settings().Features.Delete {
|
||||
AbortFeatureDisabled(c)
|
||||
|
Reference in New Issue
Block a user