       selector['users.id']  = user.getId()
       selector['groups.id'] = group.getId()
 
-      JMachine.some selector, limit: 30, (err, machines)->
+      JMachine.some selector, limit: 30, (err, machines) ->
         callback err, machines
 
 
-  @fetchByUsername = (username, callback)->
+  @fetchByUsername = (username, callback) ->
 
     JUser = require '../user'
-    JUser.one {username}, (err, user)->
+    JUser.one { username }, (err, user) ->
 
       return callback err  if err
-      return callback new KodingError "User not found."  unless user
+      return callback new KodingError 'User not found.'  unless user
 
       selector        =
         'users.id'    : user.getId()
         'users.sudo'  : yes
         'users.owner' : yes
 
-      JMachine.some selector, limit: 30, (err, machines)->
+      JMachine.some selector, limit: 30, (err, machines) ->
         callback err, machines
 
 

      shouldReviveClient   : yes
      shouldReviveProvider : no

    , (client, machineId, callback)->

      selector = @getSelectorFor client, {machineId}

      JMachine.one selector, (err, machine)->
        callback err, machine



      return callback null

    JMachine.update
      '_id'      : @getId()
      'users.id' : user._id
    , $set       : 'users.$.approved' : yes
    , (err) =>
      options = { action: 'approve', @uid }
      client.connection.delegate.sendNotification 'MachineShareActionTaken', options
