Skip to content

Commit

Permalink
fixed comments in 'connect'
Browse files Browse the repository at this point in the history
  • Loading branch information
Radagaisus committed Aug 29, 2014
1 parent 5e56e40 commit 1ec51b9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/orpheus.coffee
Expand Up @@ -83,12 +83,11 @@ class Orpheus
if err then callback(err, results = [])
else
# The response
resp = {}
# Go over the schema
for key, num of schema
resp[key] = results.splice(0, num)
response = {}
# Go over the schema and convert it a a response object
response[key] = results.splice(0, num) for key, num of schema
# Call the callback, with the error and the parsed results
callback(err, resp)
callback(err, response)


# Orpheus model extends the model
Expand Down

0 comments on commit 1ec51b9

Please sign in to comment.