Permalink
Browse files

Skip over failures with old docs and _npmUser fields

  • Loading branch information...
1 parent a3ae151 commit c4c7ebbc4ce83bb3fba4f6db8e1a6331add0e3f8 @isaacs isaacs committed Jan 15, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 registry/validate_doc_update.js
@@ -235,6 +235,12 @@ module.exports = function (doc, oldDoc, user, dbCtx) {
assert(doc.time[v] === doc.time.modified,
v + " is modified, should match modified time")
+ // XXX Remove the guard these once old docs have been found and
+ // fixed. It's too big of a pain to have to manually fix
+ // each one every time someone complains.
+ if (typeof doc.versions[v]._npmUser !== "object") continue
+
+
assert(typeof doc.versions[v]._npmUser === "object",
"_npmUser field must be object\n"+
"(You probably need to upgrade your npm version)")

0 comments on commit c4c7ebb

Please sign in to comment.