Explorar o código

Fix version_manager method call in get_table_info endpoint

Use await get_current_version() instead of non-existent get_version().

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris hai 6 meses
pai
achega
2a575fabb1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -925,7 +925,7 @@ async def get_table_info():
     return {
         "id": state.table_id,
         "name": state.table_name,
-        "version": version_manager.get_version()
+        "version": await version_manager.get_current_version()
     }
 
 @app.patch("/api/table-info", tags=["multi-table"])