Skip projects without history when migrating GitOrigin-RevId: d38539fbc1b6e406b833f849276c3829ad722d91
@@ -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)) } })
}