fix: Use service config instead of global config in status endpoint
- Changed status check to use graphiti_service.config.database.provider - Ensures status reports the actual running database, not potentially stale global - Fixes issue where status always reported falkordb regardless of config
This commit is contained in:
parent
224f167b3f
commit
a8ae6e16d0
1 changed files with 2 additions and 2 deletions
|
|
@ -723,8 +723,8 @@ async def get_status() -> StatusResponse:
|
||||||
if result:
|
if result:
|
||||||
_ = [record async for record in result]
|
_ = [record async for record in result]
|
||||||
|
|
||||||
# Use the actual configured provider from the global config
|
# Use the provider from the service's config, not the global
|
||||||
provider_name = config.database.provider
|
provider_name = graphiti_service.config.database.provider
|
||||||
return StatusResponse(
|
return StatusResponse(
|
||||||
status='ok',
|
status='ok',
|
||||||
message=f'Graphiti MCP server is running and connected to {provider_name} database',
|
message=f'Graphiti MCP server is running and connected to {provider_name} database',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue