Merge pull request #17841 from overleaf/jel-lint-populate

[web] Add linting rule for mongoose `populate`

GitOrigin-RevId: 625b2b5f9db4e88ce0d629752f083b8be71c7766
This commit is contained in:
Jessica Lawshe
2024-04-12 08:06:18 +00:00
committed by Copybot
parent 11b3c60f60
commit 955c860b64
5 changed files with 23 additions and 5 deletions
@@ -46,6 +46,7 @@ class PromisifiedSubscription {
}
async getWithGroupPolicy() {
// eslint-disable-next-line no-restricted-syntax
return await SubscriptionModel.findById(this._id)
.populate('groupPolicy')
.exec()