     indexes         :
       code          : 'unique'
     sharedMethods   :
-      static        : ['create','byCode','sendBetaInviteFromClient','grantInvitesFromClient','markAsSent']
+      static        : ['create','byCode','sendBetaInviteFromClient',
+                       'grantInvitesFromClient','markAsSent',
+                       'betaInviteCount']
     schema          :
       code          : String
       inviteeEmail  : String

                    continueLooping()
      else
        JInvitation.sendBetaInvite options,callback

  betaTestersHTML = fs.readFileSync nodePath.join(KONFIG.projectRoot, 'email/beta-testers-invite.txt'), 'utf-8'


          invitation.update $set:sent:true,(err)->
          callback null,"#{invitation.email} is marked as sent."

  @sendBetaInviteFromClient = secure (client, options, callback)->

    unless client.connection.delegate?.can? 'send-invites'
      return callback new KodingError "not authorized"
