 
   obj
 
-persistLegislationDetail = (legislationId, legislationDetail, db, callback) ->
+persistLegislationDetail = (legislationId, legislationDetail, db, jobs, callback) ->
   parseStatus = (status) ->
     code: status.Code
     date: new Date(status.Date)

module.exports = (jobs, db) -> soap.createClient legislationSvcUri, (err, client) ->
  throw err if err

  jobs.process 'import legislation detail', 5, (job, callback) ->
    # Ensure legislation object ID is in the proper format
    job.data.legislation._id = new ObjectId(job.data.legislation._id)

    version: Number(latestVersion.Version)
    url: latestVersion.Url

  gaodpLegislationDetail =
    summary: stringOrUndefined(legislationDetail.Summary)
    actVetoNumber: stringOrUndefined(legislationDetail.ActVetoNumber)
    footnotes: stringOrUndefined(legislationDetail.Footnotes)
