|
@@ -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)) } })
|
|
|
}
|
|
}
|