 
   createInviteInstance = (options, callback) ->
 
-    { email, groupName, role, firstName, lastName } = options
+    { email, groupName, role, firstName, lastName, inviter_id } = options
 
     JUser = require './user'
     hash  = JUser.getHash email

    # firstName and lastName are optional
    data.firstName = firstName  if firstName
    data.lastName  = lastName   if lastName

    invite = new JInvitation data
    invite.save (err) ->


  createSingleInvite = (client, group, invitationData, end) ->
    { email, role, forceInvite, noEmail } = invitationData
    { _id } = client.connection.delegate

    invitationData.inviter_id = _id

    groupName  = group.slug
    inviteInfo = null
