 
     return callback message : 'No username received!'  unless username
 
-    JWFGH.one {username}, (err, data)->
+    JCampaign.get 'WFGH', (err, campaign) ->
 
-      return callback err  if err
+      return callback message : 'expired'  if err or not campaign
 
-      return callback message : 'Already applied'  if data
+      JWFGH.one {username}, (err, data)->
 
-      application = new JWFGH {username}
+        return callback err  if err
 
-      application.save (err)->
-        return callback err if err
-        JWFGH.getStats account, callback
+        return callback message : 'Already applied'  if data
 
+        application = new JWFGH {username}
+
+        application.save (err)->
+          return callback err if err
+          JWFGH.getStats account, callback
 
 
   @leave = (account, callback) ->

{Model} = require 'bongo'

module.exports = class JWFGH extends Model

  CAP       = 50000
  PRIZE     = 10000
  DEADLINE  = new Date 1418626800000 # Mon, 15 Dec 2014 00:00:00 PDT

  {signature, secure} = require 'bongo'
  @share()

    indexes       :
      username    : 'unique'
      approved    : 'unique'
    sharedMethods :
      static      :
        create    : (signature Object, Function)
    schema        :
      username    :
        type      : String
