mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix sql query checking last access time
This commit is contained in:
parent
ae84777c94
commit
40f4357cd6
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ module.exports = ProjectPersistenceManager =
|
|||
job = (cb)->
|
||||
keepProjectsFrom = new Date(Date.now() - ProjectPersistenceManager.EXPIRY_TIMEOUT)
|
||||
q = {}
|
||||
q[db.op.gt] = keepProjectsFrom
|
||||
q[db.op.lt] = keepProjectsFrom
|
||||
db.Project.findAll(where:{lastAccessed:q})
|
||||
.then((projects) ->
|
||||
cb null, projects.map((project) -> project.project_id)
|
||||
|
|
Loading…
Reference in a new issue