Permalink
Browse files

Making doc_info and doc body info simpler, for use by couchstore.

Makes api and types simpler. Corrsponding changes made here.

Change-Id: I107c3fc3f4a707f247ec376faea14d5c756a6877
Reviewed-on: http://review.couchbase.org/13098
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Damien Katz <damien@couchbase.com>
Reviewed-by: Damien Katz <damien@couchbase.com>
  • Loading branch information...
1 parent bf81993 commit 6a522bf91d9adaf47be956a7d70dded514990098 Damien Katz committed Feb 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/geocouch/couch_spatial_group.erl
View
2 src/geocouch/couch_spatial_group.erl
@@ -355,7 +355,7 @@ open_db_group(DbName, GroupId) ->
design_doc_to_spatial_group(Doc) ->
- #doc{id=Id, json={Fields}} = couch_doc:with_ejson_body(Doc),
+ #doc{id=Id, body={Fields}} = couch_doc:with_ejson_body(Doc),
Language = couch_util:get_value(<<"language">>, Fields, <<"javascript">>),
{DesignOptions} = couch_util:get_value(<<"options">>, Fields, {[]}),
{RawIndexes} = couch_util:get_value(<<"spatial">>, Fields, {[]}),

0 comments on commit 6a522bf

Please sign in to comment.