[fix] export directories
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Evan Reichard 2024-01-09 21:18:12 -05:00
parent c5b181dda4
commit 8a8f12c07a

View File

@ -421,10 +421,10 @@ func (api *API) appPerformAdminAction(c *gin.Context) {
// Backup Covers & Documents // Backup Covers & Documents
for _, item := range rAdminAction.BackupTypes { for _, item := range rAdminAction.BackupTypes {
if item == BACKUP_TYPE_COVERS { 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 { } else if item == BACKUP_TYPE_DOCUMENTS {
filepath.WalkDir(path.Join(api.Config.ConfigPath, "documents"), exportWalker) filepath.WalkDir(path.Join(api.Config.DataPath, "documents"), exportWalker)
} }
} }