docker upload directories fixes

This commit is contained in:
2025-06-06 10:12:46 +02:00
parent e4238d9fdb
commit d619283d09
16 changed files with 62 additions and 23 deletions

View File

@@ -13,7 +13,7 @@ def sync_files():
return jsonify({'error': 'Unauthorized'}), 403
try:
DATA_ROOT = '/data/rooms'
DATA_ROOT = '/app/uploads/rooms'
admin_user = User.query.filter_by(is_admin=True).first()
if not admin_user:
return jsonify({'error': 'No admin user found'}), 500
@@ -73,7 +73,7 @@ def verify_db_state():
return jsonify({'error': 'Unauthorized'}), 403
try:
DATA_ROOT = '/data/rooms'
DATA_ROOT = '/app/uploads/rooms'
verification_results = {
'rooms_checked': 0,
'files_in_db_not_fs': [],
@@ -208,7 +208,7 @@ def cleanup_orphaned_records():
return jsonify({'error': 'Unauthorized'}), 403
try:
DATA_ROOT = '/data/rooms'
DATA_ROOT = '/app/uploads/rooms'
rooms = Room.query.all()
cleaned_records = []