Merge pull request #18012 from overleaf/bg-mongo-upgrade-remove-sort-from-project-deactivation-query

Simplify query for old projects in InactiveProjectManager

GitOrigin-RevId: 6c712c3b095abec9c777332a07ed888178947b40
This commit is contained in:
Christopher Hoskin 2024-04-19 10:03:40 +01:00 committed by Copybot
parent 702615acc9
commit 2100cd14fc

View file

@ -64,7 +64,6 @@ const InactiveProjectManager = {
.where('active')
.equals(true)
.select('_id')
.sort({ _id: 1 })
.limit(limit)
.read(READ_PREFERENCE_SECONDARY)
.exec()