mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge pull request #1316 from Human-Connection/1315-fix_unique_constraint_bug_when_merging_a_new_hashtag
Fix #1315
This commit is contained in:
commit
a6cb159a8b
@ -51,7 +51,7 @@ const updateHashtagsOfPost = async (postId, hashtags, context) => {
|
||||
const cypherCreateNewTagsAndRelations = `
|
||||
MATCH (p: Post { id: $postId})
|
||||
UNWIND $hashtags AS tagName
|
||||
MERGE (t: Tag { id: tagName, name: tagName, disabled: false, deleted: false })
|
||||
MERGE (t: Tag { id: tagName, disabled: false, deleted: false })
|
||||
MERGE (p)-[:TAGGED]->(t)
|
||||
RETURN p, t
|
||||
`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user