From 22436a1d7784bc265909444724fbcaa498e4e9da Mon Sep 17 00:00:00 2001 From: SoXX Date: Thu, 30 May 2024 21:22:58 +0200 Subject: [PATCH] fix: wrong query execution --- internal/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/user.go b/internal/user.go index f8f50c1..d210e3a 100644 --- a/internal/user.go +++ b/internal/user.go @@ -13,7 +13,7 @@ import ( func CreateUserNodeWithSourceRelation(ctx context.Context, driver neo4j.DriverWithContext, anthroveUserID models.AnthroveUserID, sourceDomain string, userID string, username string) error { query := ` MATCH (sourceNode:Source {domain: $source_domain}) - MERGE (userNode {user_id: $anthrove_user_id})-[r:HAS_ACCOUNT_AT {username: $source_user_name, user_id: $source_user_id}]->(sourceNode) + MERGE (:User {user_id: $anthrove_user_id})-[r:HAS_ACCOUNT_AT {username: $source_user_name, user_id: $source_user_id}]->(sourceNode) ` params := map[string]any{ "anthrove_user_id": anthroveUserID,