Skip to content

Commit

Permalink
fix: return correct buffer object for datastore responses
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanseys committed Nov 16, 2014
1 parent 46036ae commit 2d76a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datastore/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function propertyToValue(property) {
return property.string_value;
}
if (exists(property.blob_value)) {
return new Buffer(property.blob_value, 'base64');
return property.blob_value.toBuffer();
}
if (exists(property.timestamp_microseconds_value)) {
var microSecs = parseInt(
Expand Down

0 comments on commit 2d76a12

Please sign in to comment.