fix: removed unneeded pointer

This commit is contained in:
SoXX 2024-02-16 23:20:05 +01:00
parent 5435f8448d
commit 293881f007

View File

@ -8,7 +8,7 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
) )
func CreateTagNodeWitRelation(ctx context.Context, driver neo4j.DriverWithContext, anthrovePostID *models.AnthrovePostID, anthroveTag *models.AnthroveTag) error { func CreateTagNodeWitRelation(ctx context.Context, driver neo4j.DriverWithContext, anthrovePostID models.AnthrovePostID, anthroveTag *models.AnthroveTag) error {
query := ` query := `
MATCH (anthrovePost:AnthrovePost {post_id: $anthrove_post_id}) MATCH (anthrovePost:AnthrovePost {post_id: $anthrove_post_id})
MERGE (tagNode:Tag {name: $tag_name, type: $tag_type}) MERGE (tagNode:Tag {name: $tag_name, type: $tag_type})