     else
       callback('options must be specfied for find', null, 0) if callback
       return
-    
+
     skipFrom = page * max - max
 
     if max < 1

  update: update
  destroy: destroy
  name: Resource.modelName
  count: count
    query[key] = value

    @findOne query, callback

  findById = (id, systemId, callback) ->
    @findOneBy '_id', id, systemId, callback

