 module.exports = (jobs, db) -> soap.createClient legislationSvcUri, (err, client) ->
   throw err if err
 
+  jobs.process 'persist legislation authors', 5, (job, callback) ->
+    legislationId = new ObjectId(job.data.legislationId)
+
+    authorAssemblyIds = job.data.legislationDetail.Authors.Sponsorship.map (sponsorship) ->
+      Number(sponsorship.MemberId)
+
+    db.collection("members").find(assemblyId: {"$in": authorAssemblyIds}).toArray (err, results) -> ifSuccessful err, callback, ->
+      authorObjectIds = results.map((_) -> _._id)
+
+      db.collection("legislation").update {_id: legislationId}, {"$set": {"authors": authorObjectIds}}, (err) ->
+        callback(err)
+
+  jobs.process 'persist legislation committees', 5, (job, callback) ->
+    callback()
+
   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)

  db.collection("legislation").update
    _id: legislationId
  ,
    "$set": eliminateUndefineds(legislationDetail)
  , (err, doc) ->
    ifSuccessful err, callback, ->
      callback()

persistLegislationIndex = (session, legislationIndex, db, callback) ->

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

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