mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05: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:
parent
5903720dbd
commit
898f6c81c8
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ async function migrateProjects(opts = {}) {
|
||||||
} = opts
|
} = opts
|
||||||
|
|
||||||
const clauses = []
|
const clauses = []
|
||||||
|
|
||||||
|
// skip projects that don't have full project history
|
||||||
|
clauses.push({ 'overleaf.history': { $exists: true } })
|
||||||
|
|
||||||
if (projectIds != null) {
|
if (projectIds != null) {
|
||||||
clauses.push({ _id: { $in: projectIds.map(id => new ObjectId(id)) } })
|
clauses.push({ _id: { $in: projectIds.map(id => new ObjectId(id)) } })
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue