$errmsg = 'Something went wrong with the request';
}
if( $newrdg ) {
- $response->{$reading_id} = _reading_struct( $newrdg );
+ my $data = _reading_struct( $newrdg );
+ $data->{'orig_rdg'} = $reading_id;
+ $response->{"$newrdg"} = $data;
}
}
if( $errmsg ) {