Merge pull request #14696 from overleaf/jpa-lean-mongo-queries

[web] use lean mongo queries

GitOrigin-RevId: 5c9e2cddb2c45835dd9bb87c31b6e9d2b91873fd
This commit is contained in:
Jakob Ackermann
2023-09-07 13:53:40 +02:00
committed by Copybot
parent 7b554f8ecf
commit e172c67267
12 changed files with 82 additions and 67 deletions
@@ -38,10 +38,10 @@ describe('UserController', function () {
this.UserDeleter = { deleteUser: sinon.stub().yields() }
this.UserGetter = {
getUser: sinon.stub().callsArgWith(1, null, this.user),
getUser: sinon.stub().yields(null, this.user),
promises: { getUser: sinon.stub().resolves(this.user) },
}
this.User = { findById: sinon.stub().callsArgWith(1, null, this.user) }
this.User = { findById: sinon.stub().yields(null, this.user) }
this.NewsLetterManager = {
subscribe: sinon.stub().yields(),
unsubscribe: sinon.stub().yields(),