app/imports/api/challenge/ChallengeInterestCollection.js
/**
   * Defines a link between the challenge and the interest.
   * @param challenge {string} the challenge slug or id.
   * @param interest {string} the interest slug or id.
   * @return {string} The id of the record.
   */
Defines a link between the challenge and the interest.
@param challenge {string} the challenge slug or id.
@param interest {string} the interest slug or id.
@return {string} The id of the record.
Defines a link between the challenge and the interest . @param challenge { string } the challenge slug or id . @param interest { string } the interest slug or id . @return { string } The id of the record .
define({ challenge, interest }) {
    const challengeID = Challenges.getID(challenge);
    const interestID = Interests.findIdBySlug(interest);
    const docID = this._collection.insert({ challengeID, interestID });
    return docID;
  }
define ( { challenge , interest } ) { const challengeID = Challenges . getID ( challenge ) ; const interestID = Interests . findIdBySlug ( interest ) ; const docID = this . _collection . insert ( { challengeID , interestID } ) ; return docID ; }
Defines a link between the challenge and the interest.
Defines a link between the challenge and the interest .