mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 23:20:47 +02:00
Merge pull request #24539 from overleaf/td-inactive-project-index-2
Update inactive project deactivation index, second attempt GitOrigin-RevId: adc16761b001b2aa919b5a61cdbd468b7ad4e26d
This commit is contained in:
@@ -5,7 +5,6 @@ const DocumentUpdaterHandler = require('../DocumentUpdater/DocumentUpdaterHandle
|
||||
const ProjectGetter = require('../Project/ProjectGetter')
|
||||
const ProjectUpdateHandler = require('../Project/ProjectUpdateHandler')
|
||||
const { Project } = require('../../models/Project')
|
||||
const { ObjectId } = require('mongodb-legacy')
|
||||
const Modules = require('../../infrastructure/Modules')
|
||||
const { READ_PREFERENCE_SECONDARY } = require('../../infrastructure/mongodb')
|
||||
const { callbackifyAll } = require('@overleaf/promise-utils')
|
||||
@@ -62,8 +61,6 @@ const InactiveProjectManager = {
|
||||
projects = await Project.find({
|
||||
lastOpened: { $not: { $gt: oldProjectDate } },
|
||||
})
|
||||
.where('_id')
|
||||
.lt(ObjectId.createFromTime(oldProjectDate / 1000))
|
||||
.where('active')
|
||||
.equals(true)
|
||||
.select('_id')
|
||||
|
||||
Reference in New Issue
Block a user