Spaces:
Building
Building
Update admin_routes.py
Browse files- admin_routes.py +9 -0
admin_routes.py
CHANGED
@@ -456,6 +456,15 @@ async def update_project(
|
|
456 |
):
|
457 |
"""Update existing project with race condition handling"""
|
458 |
try:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
# Optimistic locking kontrolü
|
460 |
result = ConfigProvider.update_project(
|
461 |
project_id,
|
|
|
456 |
):
|
457 |
"""Update existing project with race condition handling"""
|
458 |
try:
|
459 |
+
log_info(f"🔍 Update request for project {project_id} by {username}")
|
460 |
+
log_info(f"🔍 Received last_update_date: {update.last_update_date}")
|
461 |
+
|
462 |
+
# Mevcut project'i al ve durumunu logla
|
463 |
+
current_project = ConfigProvider.get_project(project_id)
|
464 |
+
if current_project:
|
465 |
+
log_info(f"🔍 Current project last_update_date: {current_project.last_update_date}")
|
466 |
+
log_info(f"🔍 Current project last_update_user: {current_project.last_update_user}")
|
467 |
+
|
468 |
# Optimistic locking kontrolü
|
469 |
result = ConfigProvider.update_project(
|
470 |
project_id,
|