     upsert: true,
     safe: true
   , (err, doc) ->
-    ifSuccessful err, callback, ->
-      callback()
+    if err?
+      promise.fail(err)
+    else
+      promise.keep('member', doc)
 
 module.exports = (jobs, db) ->
   jobs.process 'import members', (job, callback) ->

            SessionId: session.assemblyId

          client.MemberService.BasicHttpBinding_MemberFinder.GetMembersBySession getMembersArgs, (err, result, raw) -> ifSuccessful err, callback, ->
            result.GetMembersBySessionResult.MemberListing.forEach (member) ->
              persistMember session, member, db, callback

            callback()

helpers = require '../util/helpers'
ifSuccessful = helpers.ifSuccessful

await = require 'await'
soap = require 'soap'
membersSvcUri = "./wsdl/Members.svc.xml"

# Data returned by node-soap that was nil in the output is represented
