       data =   {
         code      : options.code or shortid.generate()[0..3] # eg: VJPj9
         email     : options.email
-        groupName : options.groupName or "koding"
+        groupName : options.groupName or 'koding'
       }
 
       invite = new JTeamInvitation data


  @trait __dirname, '../traits/protected'

  {permit} = require './group/permissionset'

  @share()


        default     : -> new Date

  markAsUsed: (callback) ->
    operation = { $set : { status: 'used' } }
    @update operation, callback

  validTypes: ['pending']

  isValid: -> @status in @validTypes

  remove$: permit 'send invitations',
    success: (client, callback) ->
