Permalink
Browse files

Doing proper expansion of entry

  • Loading branch information...
1 parent d27dfff commit a339f7340f156a651fc5e23bda41a1cc915c9806 @kthakore committed Apr 19, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/KiokuDB/Backend/Riak.pm
@@ -14,6 +14,8 @@ use LWP::Simple ();
use KiokuDB::Backend::Riak::Query;
use KiokuDB::Backend::Serialize::JSPON::Collapser;
+use KiokuDB::Backend::Serialize::JSPON::Expander;
+
use Data::Stream::Bulk::Array ();
use namespace::clean -except => 'meta';
@@ -169,7 +171,11 @@ sub get_entry {
return undef unless $obj;
my $d = $self->deserialize($obj);
- return $d;
+ $d->{id} = $id;
+ my $c = KiokuDB::Backend::Serialize::JSPON::Expander->new(
+ id => 'id'
+ );
+ return $c->expand_jspon( $d );
}

0 comments on commit a339f73

Please sign in to comment.