     callback(votesCast)
 
 persistVote = (session, vote, db, callback) ->
-  assemblyIdForVote = vote.VoteId
+  assemblyIdForVote = Number(vote.VoteId)
 
   votesCast =
     yea: [],

      description: vote.Description,
      chamber: vote.Branch.toLowerCase(),
      votes: votes

    db.collection("votes").update
      assemblyId: assemblyIdForVote

ifSuccessful = helpers.ifSuccessful

soap = require 'soap'
await = require 'await'
votesSvcUri = "./wsdl/Votes.svc.xml"

mapVoteMemberIds = (session, votesCast, db, callback) ->
