Skip to content

Commit e84230a

Browse files
committed
Fixed CLEAR_SESSION_QUERY
1 parent f56ba20 commit e84230a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/neo4j_graphrag/message_history.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"MATCH (s:`{node_label}`) "
3434
"WHERE s.id = $session_id "
3535
"OPTIONAL MATCH p=(s)-[:LAST_MESSAGE]->(:Message)<-[:NEXT*0..]-(:Message) "
36-
"WITH CASE WHEN p IS NULL THEN [s] ELSE nodes(p) + [s] END AS nodes "
36+
"WITH CASE WHEN p IS NULL THEN [s] ELSE nodes(p) END AS nodes "
3737
"UNWIND nodes AS node "
3838
"DETACH DELETE node;"
3939
)

0 commit comments

Comments
 (0)