Use the invitedMembers function for sending tpds updates

This commit is contained in:
Shane Kilkelly 2017-09-20 15:48:20 +01:00
parent 574baf386e
commit 91ec0da239
2 changed files with 2 additions and 2 deletions

View file

@ -125,7 +125,7 @@ module.exports = TpdsUpdateSender =
getProjectsUsersIds = (project_id, callback = (err, owner_id, allUserIds)->)->
Project.findById project_id, "_id owner_ref", (err, project) ->
return callback(err) if err?
CollaboratorsHandler.getMemberIds project_id, (err, member_ids) ->
CollaboratorsHandler.getInvitedMemberIds project_id, (err, member_ids) ->
return callback(err) if err?
callback err, project?.owner_ref, member_ids

View file

@ -23,7 +23,7 @@ describe 'TpdsUpdateSender', ->
project = {owner_ref:user_id}
member_ids = [collaberator_ref_1, read_only_ref_1, user_id]
@CollaboratorsHandler =
getMemberIds: sinon.stub().yields(null, member_ids)
getInvitedMemberIds: sinon.stub().yields(null, member_ids)
@Project = findById:sinon.stub().callsArgWith(2, null, project)
@docstoreUrl = "docstore.sharelatex.env"
@request = sinon.stub().returns(pipe:->)