mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-11 23:20:47 +02:00
Merge pull request #19250 from overleaf/em-skip-no-history
Skip projects without history when migrating GitOrigin-RevId: d38539fbc1b6e406b833f849276c3829ad722d91
This commit is contained in:
@@ -38,6 +38,10 @@ async function migrateProjects(opts = {}) {
|
||||
} = opts
|
||||
|
||||
const clauses = []
|
||||
|
||||
// skip projects that don't have full project history
|
||||
clauses.push({ 'overleaf.history': { $exists: true } })
|
||||
|
||||
if (projectIds != null) {
|
||||
clauses.push({ _id: { $in: projectIds.map(id => new ObjectId(id)) } })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user