Correct wrong merge of master

This commit is contained in:
Wolfgang Huß 2019-08-22 08:32:19 +02:00
parent 9a799657e9
commit 3e91a66673

View File

@ -1,4 +1,6 @@
import { UserInputError } from 'apollo-server'
import {
UserInputError
} from 'apollo-server'
import extractMentionedUsers from './notifications/extractMentionedUsers'
import extractHashtags from './hashtags/extractHashtags'
@ -82,7 +84,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
`
@ -153,4 +155,4 @@ export default {
CreateComment: handleCreateComment,
UpdateComment: handleContentDataOfComment,
},
}
}