mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 18:43:43 -05:00
fix missing cb’s
This commit is contained in:
parent
759988401b
commit
f9754c4b95
1 changed files with 4 additions and 4 deletions
|
@ -61,8 +61,8 @@ module.exports = ProjectPersistenceManager =
|
||||||
job = (cb)->
|
job = (cb)->
|
||||||
console.log("_clearProjectFromDatabase")
|
console.log("_clearProjectFromDatabase")
|
||||||
db.Project.destroy(where: {project_id: project_id})
|
db.Project.destroy(where: {project_id: project_id})
|
||||||
.then(() -> callback())
|
.then(() -> cb())
|
||||||
.error callback
|
.error cb
|
||||||
dbQueue.queue.push(job, callback)
|
dbQueue.queue.push(job, callback)
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,8 +71,8 @@ module.exports = ProjectPersistenceManager =
|
||||||
console.log("_findExpiredProjectIds")
|
console.log("_findExpiredProjectIds")
|
||||||
db.Project.findAll(where: ["lastAccessed < ?", new Date(Date.now() - ProjectPersistenceManager.EXPIRY_TIMEOUT)])
|
db.Project.findAll(where: ["lastAccessed < ?", new Date(Date.now() - ProjectPersistenceManager.EXPIRY_TIMEOUT)])
|
||||||
.then((projects) ->
|
.then((projects) ->
|
||||||
callback null, projects.map((project) -> project.project_id)
|
cb null, projects.map((project) -> project.project_id)
|
||||||
).error callback
|
).error cb
|
||||||
dbQueue.queue.push(job, callback)
|
dbQueue.queue.push(job, callback)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue