mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Use the invitedMembers function for sending tpds updates
This commit is contained in:
parent
574baf386e
commit
91ec0da239
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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:->)
|
||||
|
|
Loading…
Reference in a new issue