Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kennsippell committed Dec 9, 2024
1 parent af9a9ac commit 546f9cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/hierarchy-operations/replace-lineage.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ function replaceEntireLineage(replaceInDoc, lineageAttributeName, replaceWith) {

module.exports = {
/**
* Given a doc, replace the lineage information therein with "replaceWith"
* Given a doc, replace the parent's lineage
*
* @param {Object} doc A CouchDB document containing a hierarchy that needs replacing
* @param {Object} doc A CouchDB document containing a parent lineage (eg. parent.parent._id)
* @param {Object} params
* @param {Object} params.replaceWith The new hierarchy { parent: { _id: 'parent', parent: { _id: 'grandparent' } }
* @param {string} params.startingFromId Only the part of the lineage "after" this id will be replaced
Expand All @@ -63,9 +63,9 @@ module.exports = {
},

/**
* Given a doc, replace the lineage information therein with "replaceWith"
* Given a doc, replace the contact's lineage
*
* @param {Object} doc A CouchDB document containing a hierarchy that needs replacing
* @param {Object} doc A CouchDB document containing a contact lineage (eg. contact.parent._id)
* @param {Object} params
* @param {Object} params.replaceWith The new hierarchy { parent: { _id: 'parent', parent: { _id: 'grandparent' } }
* @param {string} params.startingFromId Only the part of the lineage "after" this id will be replaced
Expand Down

0 comments on commit 546f9cb

Please sign in to comment.