From 8a8f12c07a3fbba391a8c297f56f370bb0542fd5 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Tue, 9 Jan 2024 21:18:12 -0500 Subject: [PATCH] [fix] export directories --- api/app-routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app-routes.go b/api/app-routes.go index 72293ff..5cfb4b8 100644 --- a/api/app-routes.go +++ b/api/app-routes.go @@ -421,10 +421,10 @@ func (api *API) appPerformAdminAction(c *gin.Context) { // Backup Covers & Documents for _, item := range rAdminAction.BackupTypes { if item == BACKUP_TYPE_COVERS { - filepath.WalkDir(path.Join(api.Config.ConfigPath, "covers"), exportWalker) + filepath.WalkDir(path.Join(api.Config.DataPath, "covers"), exportWalker) } else if item == BACKUP_TYPE_DOCUMENTS { - filepath.WalkDir(path.Join(api.Config.ConfigPath, "documents"), exportWalker) + filepath.WalkDir(path.Join(api.Config.DataPath, "documents"), exportWalker) } }