diff --git a/src/memos/graph_dbs/polardb.py b/src/memos/graph_dbs/polardb.py index bbf62cc34..551c6d82e 100644 --- a/src/memos/graph_dbs/polardb.py +++ b/src/memos/graph_dbs/polardb.py @@ -4744,7 +4744,7 @@ def delete_node_by_prams( # Then, combine with user_name condition using AND (must match user_name AND one of the data conditions) user_name_where = " OR ".join(user_name_conditions) - ids_where = f"({user_name_where}) AND ({data_conditions})" + ids_where = f"{user_name_where} AND ({data_conditions})" # Use Cypher DELETE query # First count matching nodes to get accurate count