Skip to content
This repository has been archived by the owner on Jul 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #52 from Financial-Times/fix-neo4j-bad-data-errors
Browse files Browse the repository at this point in the history
Fix Neo4j Bad Data Errors
  • Loading branch information
dapenguin authored Apr 18, 2018
2 parents 0b4461f + 0f50f98 commit b4597cc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/myFTClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -1177,14 +1177,15 @@ function addConceptsFollowedByKatGroupMembers (groupUUID, conceptUUIDs, relation

/**
* Add topics for specific group members to follow
* @param {String|Array} groupUUID - uuid of the group
* @param {String|Array} userUUIDs - uuids of the group users
* @param {String|Array} conceptUUIDs - uuid of the topic, or an array of topic uuids, to follow
* @param {Array} concepts - Array of objects containing data about the topics to follow
* @param {Object} relationshipProperties - properties to add to the 'member' relationship(s)
* @param {String|Array} groupUUID - uuid of the group
* @return {Promise} response -
**/
function addConceptsFollowedByKatGroupMembSpec (userUUIDs, conceptUUIDs, relationshipProperties, groupUUID) {
return _addRemoveKatConceptsFollowed('POST', myftConst.groupNodeName , userUUIDs, conceptUUIDs, relationshipProperties, true, groupUUID);
function addConceptsFollowedByKatGroupMembSpec (userUUIDs, concepts, relationshipProperties, groupUUID) {
const conceptsStrippedBack = concepts.map(concept => ({uuid: concept.uuid, name: concept.name}));
return _addRemoveKatConceptsFollowed('POST', myftConst.groupNodeName, userUUIDs, conceptsStrippedBack, relationshipProperties, true, groupUUID);
}

//TODO Depreciate in v2.0.0
Expand All @@ -1193,7 +1194,7 @@ function addConceptsFollowedByKatGroupMembSpec (userUUIDs, conceptUUIDs, relatio
* @param {String} groupUUID - uuid of the user
* @param {String|Array} conceptUUIDs - uuid of the topic, or an array of topic uuids, to follow
* @return {Promise} response -
**/
**/
function removeConceptsFollowedByGroup (groupUUID, conceptUUIDs) {
return _removeConceptsFollowedByNode(myftConst.groupNodeName, groupUUID, conceptUUIDs, true);
}
Expand Down

0 comments on commit b4597cc

Please sign in to comment.