Skip to content

Commit

Permalink
Merge pull request #9 from nexbit/issue8
Browse files Browse the repository at this point in the history
Fix issue #8 - dehidrate() called once at the end of full_dehidrate
  • Loading branch information
esatterwhite committed Apr 30, 2016
2 parents 695e926 + 92b0397 commit 24d5241
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/resource/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,11 +620,10 @@ Resource = new Class({
ret[field] = method.call(that, obj, bundle, ret );
}

dehydrate( ret );
return cb && cb( err );
});
}, function( err ){
done( err, ret );
done( err, dehydrate( ret ) );
});
}

Expand Down

0 comments on commit 24d5241

Please sign in to comment.