Merge pull request #17268 from overleaf/dp-remove-old-mongo-metrics

Remove timeAsyncMethod mongo metrics

GitOrigin-RevId: 1ba3a1fd51b9d0766355c31791ae9836d832afe8
This commit is contained in:
David
2024-02-28 11:20:53 +00:00
committed by Copybot
parent d08f93c70c
commit 0769329734
15 changed files with 1 additions and 350 deletions
@@ -19,7 +19,6 @@ describe('UserCreator', function () {
'../../models/User': {
User: this.UserModel,
},
'@overleaf/metrics': { timeAsyncMethod() {} },
'../../infrastructure/Features': (this.Features = {
hasFeature: sinon.stub().returns(false),
}),
@@ -49,9 +49,6 @@ describe('UserGetter', function () {
requires: {
'../Helpers/Mongo': { normalizeQuery, normalizeMultiQuery },
'../../infrastructure/mongodb': this.Mongo,
'@overleaf/metrics': {
timeAsyncMethod: sinon.stub(),
},
'@overleaf/settings': (this.settings = {
reconfirmNotificationDays: 14,
}),