mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
Merge pull request #3596 from overleaf/ho-read-pref-secondary
add .setReadPreference('secondary') to slow queries
GitOrigin-RevId: 828f9a417a43237b3de5609ee9b12b30a68fc167
This commit is contained in:
@@ -72,6 +72,7 @@ module.exports = InactiveProjectManager = {
|
||||
.select('_id')
|
||||
.sort({ _id: 1 })
|
||||
.limit(limit)
|
||||
.read('secondary')
|
||||
.exec(function(err, projects) {
|
||||
if (err != null) {
|
||||
logger.err({ err }, 'could not get projects for deactivating')
|
||||
|
||||
Reference in New Issue
Block a user