[changes]Modify the code based on the AI review

This commit is contained in:
lanceyq
2026-02-04 17:40:19 +08:00
parent aad8f0e36b
commit 24fbdbd716
3 changed files with 9 additions and 4 deletions

View File

@@ -279,7 +279,7 @@ class MemoryConfigRepository:
if update.config_desc is not None:
db_config.config_desc = update.config_desc
has_update = True
if hasattr(update, 'scene_id') and update.scene_id is not None:
if update.scene_id is not None:
db_config.scene_id = update.scene_id
has_update = True