           if key not of collections
             throw new Error "Invalid Collection in Import Object"
           
-          uidObj = exports.getUniqueIdentifierForCollection key, doc
+          uidObj = getUniqueIdentifierForCollection key, doc
           uid = uidObj[Object.keys(uidObj)[0]]
           result = yield collections[key].find(uidObj).exec()
           

# API endpoint that checks for conflicts between import object and database
exports.validateMetadata = () ->
  handleMetadataPost 'validate', this

      exportObject[col] = yield collections[col].find().lean().exec()
      for doc in exportObject[col]
        if doc._id
          doc = removeProperties doc

    this.body = [exportObject]
    this.status = 200
